When trading in mt4 you need to define better trading conditions:
Quote:
Buy if the three custome indicators are the same
This one does not make sense. Put all indicators in the chart and think how you want it.
Also, define independent conditions. The highest high of the last 30 bars could include the highest high of the last 5 bars if the highest take place in any of the last 5 bars.
Do you want to compare the highest of the last 5 bars, with the highest of the 30 bars before the last 5 bars? maybe using i+6 may help...
it's really difficult to understand your logic. Probably you saw something like the ma of the last 5 bars > ma of the last 30 bars then BUY, which is ok, but you cannot do the same thing with "the highest"
Quote:
Close the buy if costume indicator openhighest5 is lower than custom indicator openhighest30
This may work if you shift the calculation for openhighest30 to start on i+6