Moderator: admin
if Indicator.DATA[period]>Indicator.DATA[period-1]
then
if Direction then
BUY();
else
SELL();
end
LastEntry= Source:serial(period);
Return=true;
elseif Indicator.DATA[period]<Indicator.DATA[period-1]
then
if Direction then
SELL();
else
BUY();
end
LastEntry= Source:serial(period);
Return=true;
end
Users browsing this forum: No registered users and 101 guests