While using an EA for US Futures markets, do we set profit and loss in pips or points? For example the ES moves in increments of 0.25 and bonds move in increments of 1/32. Did not see fraction in MT5 either. Thank you.
I am trying to add/subtract pips to a trailing stop code depending on buy/sell. Is this correct? if (isNewBar) TrailingStopSet( OP_BUY , Support( 4 * PeriodSeconds (), false , 00 , 00 , true , 1 )) - 5 * myPoint if (isNewBar) TrailingStopSet(
When I try to set a profit Target using the high and low of bars 2 and 3 the EA does not apply it. Is there something wrong with the code? I am basically trying to subtract from the opening price the difference in pips between the high and low
If I do not want to trade long after a buy trade and vice versa is there a function in MT4 that does that? Or will somethin like this work too? If LastOpenTrade != Op_Buy Thanks.
Are there built in functions for Last Trade was Long or Short? Also a function for Total Number of Trades for the day? And a function to stop for day if Profit is X dollars for day and restart next day? Thank you.
I am trying to place a trade in a band between a MA and pips added to the MA using the ATR. So say I want to open a trade only between the MA and X pips added to it. Will the code below work? Is ATR always a value returned in pips that can be added
This is my function for the last trade opening price. double LastTradePrice() { double result = 0; for(int i = OrdersTotal()-1; i >= 0; i--) { if(!OrderSelect(i