Im facing this error when I try to retrieve the oldest ticket in my current pool of trades using the functions below, int EarliestOpenSellTicket() { datetime EarliestSellTime = TimeCurrent
So I have a system where I open a new trade every 10 pips and close out the last trade. The last trade is also modified to set the stop loss to 10 pips. Currently, I have a function that does this: void TradeCloser(){ //start
Hey, so this is what I have so far: void OnTick ( void ) { openedpositions= OrdersTotal (); if ((openedpositions > 0 )) { int totalorders = OrdersTotal ();
Hi, I currently have a system that opens a trade almost every 5 minutes. I'm currently trying to wrap my head around creating a trailing stop loss that does something like this: "when price moves to 5 pips in profit stoploss is moved to entry when