Say for example I have a trade on and it reaches 150 pips in profit I am wanting to stop my EA from trading after this trade closes. I am looking at the best way to implement this.
My first problem is how do I get the profit value when a trade has reached this amount can I just use OrderProfit or do I need to get trade specific.
I am thinking of using IsTradeAllowed () and changing this from true to false. Or else the Sleep function however it will be off for the rest of the day.
My main question at the moment is how to utilise knowing the profit of a trade.
Thanks
My first problem is how do I get the profit value when a trade has reached this amount can I just use OrderProfit or do I need to get trade specific.
I am thinking of using IsTradeAllowed () and changing this from true to false. Or else the Sleep function however it will be off for the rest of the day.
My main question at the moment is how to utilise knowing the profit of a trade.
Thanks