PureBytes Links
Trading Reference Links
|
{MORE EXAMPLES WITH A SYSTEM}
Inputs : BuyLen(10),SellLen(10),lextra(1),sminus(1);
vars: yltxt(0),yl("- sell - - - - - - - - - - - - - - - - -");
vars: yhtxt(0),yh("- buy - - - - - - - - - - - - - - - - ");
if currentbar=1 then begin {initialize the text:}
yltxt= text_new(d,1,H+100,"--"+yl+yl+yl+yl+yl+yl+yl+yl+yl+yl+yl+yl+yl+yl);
TEXT_SETCOLOR(yltxt,4);
TEXT_SETSTYLE(yltxt,0,2); end;
if currentbar=1 then begin {initialize the text:}
yhtxt= text_new(d,1,H+100,"--"+yh+yh+yh+yh+yh+yh+yh+yh+yh+yh+yh+yh);
TEXT_SETCOLOR(yhtxt,6);
TEXT_SETSTYLE(yhtxt,0,2); end;
VALUE1=Highest(High,BuyLen) + lextra point ;
VALUE2=Lowest(Low,SellLen) - sminus point ;
Buy at Highest(High,BuyLen) + lextra point stop; {BUY/SELL}
text_setlocation(yhtxt,d,1,value1); {CHART BUY/SELL LEVELS}
print(" Then Buy ABCLong ", VALUE1:4:4); {PRINT STATEMENT}
Sell at Lowest(Low,SellLen) - sminus point stop; {BUY/SELL}
text_setlocation(yltxt,d,1,value2); {CHART BUY/SELL LEVELS}
print(" Then Sell ABCShort ", VALUE2:4:4); {PRINT STATEMENT}
{text_setcolor(txt,6< this number 6=red
to change the color, pick a number from the list below
1=black,2=blue,3=cyan,4=green,5=magenta,6=red,7=yellow,8=white}
|