PureBytes Links
Trading Reference Links
|
or plot:
LE=ValueWhen(Buy,BuyPrice);
LX=ValueWhen(Sell,SellPrice);
LP=IIf(Sell,LX-LE,0);
PLP=LP/LE*100;
SE=ValueWhen(Short,ShortPrice);
SX=ValueWhen(Cover,CoverPrice);
SP=IIf(Cover,SE-SX,0);
InRange = Status("BarInRange");
PSP=SP/SE*100;
// Plot profit bars
Plot(IIf(IsEmpty(PLP),0,PLP),"LongProfit",5,2|styleOwnScale|styleArea,-20,10);
Plot(IIf(IsEmpty(PSP),0,PSP),"ShortProfit",4,2|styleOwnScale|styleArea,-10,20);
Potato Soup wrote:
For
instance when you have it show all the entries and exits using arrows
on individual trades from a backtest, there's no way to tell without
inspecting the chart if it's a win or a loss. Is there any way to have
it change its color so that winning buy/sell/short/cover signals are
one color and losses are another?
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|
|