|
Using ATR as a dynamic stop loss in Strategy Builder |
Bill3
|
Post subject: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Wed 08 Jan, 2014, 13:27
|
|
User rating: 0
Joined: Fri 13 Dec, 2013, 10:21 Posts: 11 Location: United Kingdom, Durham
|
i wish to use atr14 multiply by 2 to use as a stop loss,
i have created the calculation and it does not seem to allow me to drag my calculation into the SL area of pending order block or trailing stop loss block.
i have tried changing global to both true and false but neither work.
the following is what i am trying to attain:
if ATR*2 is less than or equal to 30 then use a stoploss of 30 also if it is greater than or equal to 60 then use a stoploss of 60
with the two of these i have no issue and have created fixed stop loss
however, when i try to create a block for greater than 30 pips but less than 60 i am having issues
i have attached the ATR stoploss blocks that i have created (for ease of viewing) ,
thank you in advance for your help
Bill.
attached are my Jforex visual workings
Attachments: |
File comment: this is the specific issue file
atr_Stoploss.vfs [39.46 KiB]
Downloaded 220 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Wed 08 Jan, 2014, 16:37
|
|
Visual JForex expert at Dukascopy |  |
User rating: 27
Joined: Fri 03 May, 2013, 18:25 Posts: 366 Location: GermanyGermany
|
Greetings! Correct me if I am wrong, but when I open the ATR in JForex platform I always get values of about 0.001. That is why your SL is not working  Maybe you have to put another multiplier... Regards
|
|
|
|
 |
Bill3
|
Post subject: Re: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Wed 08 Jan, 2014, 17:27
|
|
User rating: 0
Joined: Fri 13 Dec, 2013, 10:21 Posts: 11 Location: United Kingdom, Durham
|
ahh  i had not noticed that issue, however, i think i may have found why i cannot put 'ATR2' into the pending order or trailing stop as the type should be Integer but the type for ATR output is Double, as there are decimal places in it. is it possible to change the type in anyway?
|
|
|
|
 |
Bill3
|
Post subject: Re: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Thu 09 Jan, 2014, 09:51
|
|
User rating: 0
Joined: Fri 13 Dec, 2013, 10:21 Posts: 11 Location: United Kingdom, Durham
|
for the issue of the atr being 0.001 would a simple calculation of atr * 10000 work?
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Thu 09 Jan, 2014, 11:18
|
|
Visual JForex expert at Dukascopy |  |
User rating: 27
Joined: Fri 03 May, 2013, 18:25 Posts: 366 Location: GermanyGermany
|
Greetings!
I have attached the part of the adjusted trailing step.
Please note that after upon your pending order is filled this part is working. Basically, you have to create pending orders. After the successful fill the positionsViewer is "taking over" meaning that your SL (which was defined in the pending order) will be adjusted according to the ATR.
Attachments: |
ATR_SL.vfs [28.98 KiB]
Downloaded 291 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
Bill3
|
Post subject: Re: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Thu 09 Jan, 2014, 11:34
|
|
User rating: 0
Joined: Fri 13 Dec, 2013, 10:21 Posts: 11 Location: United Kingdom, Durham
|
thank you Dirk
within my strategy should i place this formula after pending orders?
is there no way of having the trailing stop section in the middle to use atr_modified as the sl if the figure is greater than 30 but less than 60? ie if atr modified is 44 then use this as the SL? or is this too dynamic for the strategy builder
Regards
Bill
|
|
|
|
 |
Bill3
|
Post subject: Re: Using ATR as a dynamic stop loss in Strategy Builder |
Post rating: 0
|
Posted: Sun 12 Jan, 2014, 17:53
|
|
User rating: 0
Joined: Fri 13 Dec, 2013, 10:21 Posts: 11 Location: United Kingdom, Durham
|
if atr calculation is in between the range of greater than 30 and less than 60 then i would like to use the calculation as a stoploss for example
atr = 0.00185
calculation would create a result of 37
with this result i would like to use it as trailing stop loss steps.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|