Topics
08 Sep 2017, 19:04
 2615
 3
Replies

ablouwrens
15 Sep 2017, 10:32

RE:

Spotware said:

Dear ablouwrens,

Thanks for posting in our forum. Please see the code sample below and let us know if this is what you need

            var sma = Indicators.SimpleMovingAverage(MarketSeries.Median, 14);
            if (sma.Result.LastValue > Positions.Find("first trade label").EntryPrice)
            {
                ExecuteMarketOrder(TradeType.Buy, Symbol, 1000, "2ndTrade");
            }

Best Regards,

cTrader Team

Dear cTrader Team.

You are more than welcome and thank you kindly for your reply.

Will be sure to visit the forum again in the near future.

Kind regards.

Andre'


@ablouwrens