PureBytes Links
Trading Reference Links
|
I created a simple show me below and when I converted it to a signal / strategy it plots in different locations?
Can any one possibly see something wrong with my code or suggest settings. I do use jurik jma in the code.
Thx Sno
showme
Inputs: CCILen(14 ), FastLen(10),pt(.5);
Variables: CCIVal(0), ccival2 (0);
CCIVal = CCI_Close(CCILen);
ccival2=(JRC.JMA.2k(ccival, FastLen, 0));
If
CCIVal < 0 Then begin
Plot1 (high + pt, "cci sell");
end;
If
CCIVal > 0 Then begin
Plot2 ( low - pt, "cci buy");
end;
signal
Inputs: CCILen(14 ), FastLen(10),pt(.5);
Variables: CCIVal(0), ccival2 (0);
CCIVal = CCI_Close(CCILen);
ccival2=(JRC.JMA.2k(ccival, FastLen, 0));
If
CCIVal < 0 Then begin sell open;
end;
If
CCIVal > 0 Then begin buy open;
end;
|