|
how to Close open positions in 1 hour? |
junminh
|
Post subject: how to Close open positions in 1 hour? |
Post rating: 0
|
Posted: Mon 05 Dec, 2016, 07:25
|
|
User rating: 0
Joined: Mon 05 Dec, 2016, 07:20 Posts: 1 Location: MexicoMexico
|
Hello all,
What I want to implement, the logic is simple, but I dont know how to do in in Visual JForex, please help. Thank you.
If there is any open position, I would check its open datetime, if 1 hour have passed already, just force to close the position.
|
|
|
|
|
amine_chourou
|
Post subject: Re: how to Close open positions in 1 hour? |
Post rating: 0
|
Posted: Mon 05 Dec, 2016, 17:00
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi
Here is an example for testing purpose ... You may need to remove the part that is submitting trades later ..
Attachments: |
CloseAfter1H.vfs [32.24 KiB]
Downloaded 164 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.
|
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|