# How to plot simple trailing stoploss of fixed points

#### josh1

##### Well-Known Member
Can anybody tell me how to create and plot a Trailing stop loss of fixed points? Say 2, 5 , 10, 20 or 40 points.
Built in Applystop function does not plot stop loss.

#### manojborle

##### Learner
Can anybody tell me how to create and plot a Trailing stop loss of fixed points? Say 2, 5 , 10, 20 or 40 points.
Built in Applystop function does not plot stop loss.
I think first of all we must have buy and sell rules, then only we can set stop loss system

#### manojborle

##### Learner
For example the logic will be like this.
2. we keep a stop loss of 20 points down from the high
3. if next bar high is higher then stop loss is increased to current high - 20.
4. if price does not cross next high then stop loss will remain same.
5. we use Plot function to plot it on chart
I am not much into programming but will give it a try

Similarly the logic will be reverse for short signal

#### sr114

##### Well-Known Member
Can anybody tell me how to create and plot a Trailing stop loss of fixed points? Say 2, 5 , 10, 20 or 40 points.
Built in Applystop function does not plot stop loss.
Josh

Ed had written/converted Vstop (stopless) from Metastock. u canuse it for ur requirement

rgds
subroto

#### josh1

##### Well-Known Member
Josh

Ed had written/converted Vstop (stopless) from Metastock. u canuse it for ur requirement

rgds
subroto

Thanks Subroto

I think it is working

Josh

#### josh1

##### Well-Known Member
hi

plot stoploss this way for daily chart.

Hi,

This one seems to be ATR based. I wanted fixed points Stop. I got it.

#### DataRam

##### Banned
Hi,

This one seems to be ATR based. I wanted fixed points Stop. I got it.
Hi Josh , I was also contemplating on stop loss based on fixed points.

Can you share the exact AFL code which you have mentioned about solving your problem.

Thanks.

#### mastermind007

##### Well-Known Member
hi

plot stoploss this way for daily chart.
Only drawback about this is that it assumes that you are continously trading. Either you hold Long or are holding short. There is no concept of NOT HOLDING any position