trade.Buy( 0.02 , NULL ,PriceInfo[ 1 ].close,PriceInfo[ 1 ].low, 2 *PriceInfo[ 1 ].high-PriceInfo[ 9 ].low, NULL ); How come does this open multiple trades on a candle instead of only on the value of the previous low
I am struggling to find a way to make the horizontal line only start from the bottom of the candle and go out 4 bars instead of infinite I also don't know how to place horizontal lines at each of these conditions instead of it repainting, I
I do not know how to save a variable outside of my if statement in my code: the variables I wish to save are double buyzone; double buysl; double buytp; double sellzone; double sellsl; double selltp; Code is: void
I am using the trade.Buy function and for price I put iClose or iOpen(0). However it isnt following the command and is instead buying like this: trade.Buy( 0.01 , NULL , iClose ( NULL , PERIOD_M1 , 1 ), MathMin (low1,low2),Ask+ 3 *ATR, NULL ); Any
My code for a trailing stop does not work, can someone please advise me on what is wrong with the code if ( PositionsTotal ()> 0 ){ for ( int i= 0 ;i>= 0 ;i++) { /* string position
Hello. I'm trying to use the icustom command to utilize the bollingerbandwidth % indicator i got free from the market however i get this error 2018.09.18 14:32:25.062 2017.01.04 21:28:24 cannot open file
Hello, Im trying to modify long positions on mt4 and im using a for loop to change the stop loss to move it up as the profit values are quite high and if it doesnt reach that value it sometimes ends in loss when it couldve still be very