PureBytes Links
Trading Reference Links
|
This is the code I use for a Money Management Stop
{Indicator Money Management Stop}
{Plot using Type Point}
Input: MMStop(true), MMStp(10);
Vars: LngMMS(0), ShtMMS(0);
if MMStop = true then begin
LngMMS = (I_AvgEntryPrice-MMStp);
ShtMMS = (I_AvgEntryPrice+MMStp);
if I_marketposition =1 then begin
plot1(LngMMS,"LngMMStop");
end;
if I_marketposition =-1 then begin
plot2(ShtMMS,"ShtMMStop");
end;
end;
After seeing the code below posted a couple of days ago by Benjamin Blanco
IF Mod(DaysAgo, 2) = 0 THEN Plot1(HighD(DaysAgo),"Daily") ELSE
Plot1(LowD(DaysAgo),"Daily"'');
I was wondering if my MMStop could be adapted to use only one plot, but
I can't figure it out.
Any help would be appreciated
thanks
foolsgold
|