I want to see if I can code a double trigger, but based on 3 criteria. Yeah, that part is easy enough, but I have never played with indicators applied to other indicators as triggers.
So, check out the chart posted.
This is the Bollinger Bands applied to the OSMA.
Trigger criteria based on the OSMABB, would be:
if (OSMA[2]>upBB[2]&&OSMA[1]<upBB[1]) return (sell);
if (OSMA[2]<loBB[2]&&OSMA[1]>loBB[1]) return (buy);
But, how do I get the EA to understand that the Bollinger is based on the OSMA levels?
(I have never worked with Arrays) and my strongest coding abilities go back to when the use of "GOSUB", and "GOTO", were common phrase...
Any helps would be greatly appreciated.
So, check out the chart posted.
This is the Bollinger Bands applied to the OSMA.
Trigger criteria based on the OSMABB, would be:
if (OSMA[2]>upBB[2]&&OSMA[1]<upBB[1]) return (sell);
if (OSMA[2]<loBB[2]&&OSMA[1]>loBB[1]) return (buy);
But, how do I get the EA to understand that the Bollinger is based on the OSMA levels?
(I have never worked with Arrays) and my strongest coding abilities go back to when the use of "GOSUB", and "GOTO", were common phrase...
Any helps would be greatly appreciated.
Money Can't Buy Happiness. Poverty Can't Buy SHIT! You Choose!