Setstoploss_pt and Setpercenttrailing_pt doesn't work  [SOLVED]

Questions about MultiCharts and user contributed studies.
tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Setstoploss_pt and Setpercenttrailing_pt doesn't work

Postby tradingest » 15 Oct 2016

Hi all,

changing the setstoploss and setpercenttrailing with the setstoploss_pt and setpercenttrailing_pt my performance report doesn't show any trade. Why?

Code: Select all

setstopposition;
setpercenttrailing_pt(Targ,0.1);
setstoploss_pt(Stp);
where

Code: Select all

variable:
Tick(0);

Tick = (MinMove/PriceScale);

Variable:
Targ(Tick*70), Stp(Tick*40);
Thanks in advance,
tradingest

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Setstoploss_pt and Setpercenttrailing_pt doesn't work  [SOLVED]

Postby Henry MultiСharts » 20 Oct 2016

Hello tradingest,

I would recommend you to verify the order generation logic by outputting the variables and conditions involved in order generation. Here is a sample code for that: 
https://www.multicharts.com/trading-sof ... t_Executed


Return to “MultiCharts”