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

closing logic with VWMA error
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=21&t=55593
Page 1 of 1

Author:  mrlfx [ Wed 11 Oct, 2017, 05:56 ]
Post subject:  closing logic with VWMA error

I used VWMA for closing an open trade. But there is error as the open trade won't close when the logic conditions are met.

Instance of Buy Open Order:
To close an open Buy order, the close trade logic is for VWMA3<VWMA2 & VWMA2>VWMA1. What would rectify the error?

Note: 1,2,3 & 0 are Shift Value.



Image

Attachments:
Close logic.jpg [39.31 KiB]
Downloaded 521 times
TrendOpportunity.vfs [58.58 KiB]
Downloaded 535 times
Close logic.jpg [41.82 KiB]
Downloaded 643 times

Author:  vadim_berezhnoj [ Thu 19 Oct, 2017, 12:33 ]
Post subject:  Re: closing logic with VWMA error

Hello

Here are some corrections, please check.

Attachments:
TrendOpportunity_v2.vfs [59.75 KiB]
Downloaded 513 times

Author:  mrlfx [ Thu 19 Oct, 2017, 13:17 ]
Post subject:  Re: closing logic with VWMA error

Thanks for the help.

But it is not closing as per logic. Looking deeper, I found that the logic of close opened positions should be preceded by the VWMA indicators blocks. So, I put all the VWMA indicators blocks just after the Candle Start at the beginning and its executing now.


Thanks...

  Page 1 of 1