ablouwrens
ablouwrens 15 Sep 2017, 10:32
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 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
15 Sep 2017, 10:32
RE:
Spotware said:
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