So i believe i have this all written out perfect i am just stumped at one thing .. How to call a condition for when the Heiken Ashi candles switch from red to green and vice versa so i can use those as my triggers. I believe i wrote everything else fine.
the ***** **** signals where i need help.
inputs:
SignalDataNum( 2 ), // Data1 should be "Normal" bars, while Data2 can be Heiken-A
price( close ),
length( 200 );
dOpen = Open of Data(SignalDataNum);
dHigh = High of Data(SignalDataNum);
dLow = Low of Data(SignalDataNum);
dClose = Close of Data(SignalDataNum);
if barCount > 0 then begin
//Indicator
Ema = XAverage( Price, Length ) ;
// Order Management ================================================
condition1 = ***(currentbar ??)*** AND Price Ema ;
condition3 = ***(currentbar ??)*** AND Price Ema ;
:crazy_pilot:
Thanks in advanced if anyone take a look at this :)