Hi Mladen,
I would like to use your Super_Smoothed_Average 1.5 for an EA to test.
It should go long when the slope line turns green,
not trade / exit the position when the slope line is grey
go short when the line turns red.
Since I don't know the source code, I could only have a guess which buffer to take for example.
I put in some pseudo code. Could you probably give me some advise how to address the indicator?
Thank you in advance!
Code: Select all
int Super_Smoothed_Average()
{
int i;
int SSA_Signal=0;
int BarShift = iBarShift(NULL,TimeFrame,Time[i]);
double SSA_Trend = iCustom(NULL,TimeFrame,"Super_Smoothed_Average 1.5",PERIOD_CURRENT,AveragePeriod,AveragePrice,AverageMethod,FloatingLevels,SmoothPower,Alerts,AlertsSound,ColorChangeOn,7,BarShift);
if (SSA_Trend == 0) SSA_Signal = 0; // Grey Exit Position / not trade
if (SSA_Trend == 1) SSA_Signal = 1; // Long
if (SSA_Trend == -1) SSA_Signal = -1; // Short
return (SSA_Signal);
}