Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Max spread
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=57223
Page 1 of 1

Author:  olivierdp [ Wed 11 Dec, 2019, 16:38 ]
Post subject:  Max spread

Hello,
I try to build a strategy which use a maximum spread. Every time spread is more than 1 pip on eur/aud for exemple, the stream is suspended. Then the stream go on if spread is less than 1 pip.
I have tried on the following file.. but it doesn't work..
Do you have any idea ?
Thank you

Attachments:
testspread_v2.vfs [40.57 KiB]
Downloaded 78 times

Author:  vadim_berezhnoj [ Tue 17 Dec, 2019, 17:53 ]
Post subject:  Re: Max spread

Hello.

In Calculation block You've forgot to divide the result by pipSize.
The formula should be
(A1-A2)/A3

Kind regards, Support Team.

  Page 1 of 1