Hi Alexander,
I am getting a buy and/or sell signal on every candle.
What would cause this to happen?
Thanks,
Richard
Moderator: admin
Apprentice wrote:Trade will be generated if we have a change in the slope of Non-Lag Moving Average.
The positive slope
Open Long Trade
Negative Slope
Open Short Trade
The parameter is set in pips. A zero value means there is no filtering.
if Indicator[1].DATA[period]> Indicator[1].DATA[period-1]
and Indicator[1].DATA[period-2] > Indicator[1].DATA[period-1]
then
if Direction then
BUY();
else
SELL();
end
elseif Indicator[1].DATA[period] < Indicator[1].DATA[period-1]
and Indicator[1].DATA[period-2] < Indicator[1].DATA[period-1]
then
if Direction then
SELL();
else
BUY();
if Indicator[1].DATA[period] prints GREEN and Indicator[1].DATA[period-1] prints GREEN
then
if Color then
BUY();
if Indicator[1].DATA[period] prints RED and Indicator[1].DATA[period-1] prints RED
then
if Color then
SELL();
Users browsing this forum: No registered users and 57 guests