Dukascopy
 
 
Wiki JStore Search Login

Placing Pending Orders Per Tick
 Post subject: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Tue 16 Jun, 2015, 12:45 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hello Folks

This is my first post here and I habeen spending time working out this Visual Jforex thing. I have been a fanatic user/EA developer with MT4 and MQL4 since i came across VJF platform.

Well, long story short, I am trying to develop an strategy that should will place pending orders with certain diastase(User Defined Global Variable) from Ask/Bid for But/Sell Stops. Eventually I will develop this further to do that basd on some timing crioteria that I have already worked out how to do it.

In doing this, I encountered an issue that I am gonna share it with you experts so someone maybe able to assist me.

As I said my strategy suppose to delete existing pending orders(if there is any) and replace them with new ones[since VJF does not have pending order(s) modification feature which I find it very odd]. This has to happen every tick. So far so good. I have come up with the attached VJF system that works perfectly fine on onCandle event. Problem starts when I wanna do the same thing on onTick event but the the system starts placing numerous pending orders per tick.

To me it seems that new bid AND new ASK are considered a tick in VJF and that is where everything goes pear shape. I guess I get a new bid so the system place oredr and then I get a new ASK which again system put new order. I steady calm market it works almost fine when the market is about volatile I get up to 4-5 pending orders.

IS there any way to resolve this issue? Am I doing something wrong? Any has experience this before?

Folks, I really need to get to the bottom of this pretty quick so any response would be greatly appreciated.

Cheers


Attachments:
PendingOrdersPerTick.vfs [38.89 KiB]
Downloaded 176 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.
 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 1   New post Posted: Tue 16 Jun, 2015, 15:30 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Thanks for your post.

- I looked to your file and the strategy behaves exactly the same using OnCandle start and OnTick start. Actually what is developed is the following: Placing a BUY stop order at every tick event and cancel the previous if any : what is considered as tick event is indeed a new tick BID/ASK price that comes up. In your case, the strategy is placing a BUY stop on ASK so every new tick on ASK a new trade is placed.

- Modification of pending orders using VJF is indeed possible and uses the "Cancel/ Replace" feature so basically the order is cancelled then replaced by a new pending order once a new tick ASK is received (i.e : every tick on ASK) exactly as shown by your file.

- BID and ASK ticks comes almost at the same time, and your BUY STOP order is considering ASK prices and that's what is traded.

Hope this helps

Cheers


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Tue 16 Jun, 2015, 15:43 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Thanks for your prompt reply.

I encourage you to run that strategy which I attached on live data feed please. You will see how it is behaving.

it is working perfectly fine on onCanle start and also works peach prefect on onTick start BUT on historical data. what is bugging me is why it is not working properly on live data feed.

I must say that i tested it through VJF not directly on JForex(if that makes sense). Please have a look and if you still believe it is working fine I will record a very short video of the system's performance on live data feed.

Please let me know.

Cheers


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 1   New post Posted: Tue 16 Jun, 2015, 15:53 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Well, according to what is built in your strategy it meets the requirement.
Can you please describe thoroughly what are your expectations and requirement for your strategy ?

Thanks


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Tue 16 Jun, 2015, 16:41 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
amine_chourou wrote:
Hi,

Well, according to what is built in your strategy it meets the requirement.
Can you please describe thoroughly what are your expectations and requirement for your strategy ?

Thanks


Here is a 26 seconds screen recording of what the system does.

And what I am trying to do(of course when I resolve this issue)is to automate my system as below
1- The system should start placing orders from X seconds before a certain time(all user defined) --> I have got this sorted out
2-The orders will be placed Y pips away from ASK/BID for BUY/SELL stop orders.--> I have got this sorted out
3- the system should keep updating the pending orders as it receives new ticks(ASK and BID) --> this is through cancelling previously placed orders and replacing them with new ones
4-The system will stop updating pending orders just on the previously defined time by user in item1-->I have got this sorted out
5-The system will handle open positions and/or untriggered positions according to my system-->I have got this sorted out

I have item 3 sorted out(technically speaking) but when it comes to real test on real data it behaves abnormally as you can see in the video that I put the link below(PLEASE HAVE A LOOK)
https://youtu.be/K_ydHrvgfyA

P.S: As I said before onCandle start it has no issue and works exactly as I need to.

It even works just fine on onTick start but on Historical data testing

So I can not find any reason as to why it is playing up on live data.

Hope this clarify the issue further.

cheers


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Tue 16 Jun, 2015, 23:59 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Well guys

Please!!! anyone, any idea as why this is happening?

I am desperate for the solution/reason.

Cheers


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 1   New post Posted: Wed 17 Jun, 2015, 09:16 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

The test that I made was performed only using VJF historical tester and real-time run. Obviously the strategy behaves differently when exported and tested in Jforex platform. Let me check this in depth, I'll keep you posted.

Thanks for your patience

Cheers


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Wed 17 Jun, 2015, 13:16 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
amine_chourou wrote:
Hi,

The test that I made was performed only using VJF historical tester and real-time run. Obviously the strategy behaves differently when exported and tested in Jforex platform. Let me check this in depth, I'll keep you posted.

Thanks for your patience

Cheers

Hi mate

Thanks for your consideration. I just would like to bring something to your attention. I ran the strategy in three different modes/ways as below:
1- VJF historical tester ---> Work perfectly fine and did exactly right
2- Ran/tested it on live data through VJF ---> resulted in that abnormal behaviour
3- Exported to JForex platform and ran on live data --->resulted in that abnormal behaviour

So in my test runs on live data feed, regardless if it was through VJF or directly in JForex platform, I did get the same abnormallity in placing the orders.

Thanks again for your support and I am eagerly waiting for your reply as it is the only thing stoping me to finish automating my system. Keep us in the loop.

Cheers


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Thu 18 Jun, 2015, 15:39 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Instrument filter was missing.


Attachments:
PendingOrdersPerTick_v2.vfs [42.29 KiB]
Downloaded 170 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.
 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Fri 19 Jun, 2015, 08:21 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
vadim_berezhnoj wrote:
Instrument filter was missing.


Hi Vadim

Thanks for the reply. But I am afraid to advise you that the Instrument Filter DID NOT resolve the issue and it still exists.

I am more than happy to upload another video demonstrating your VJF strategy in action. Same old same old.

Ran/tested it on live data through VJF ---> resulted in that abnormal behaviour Placing too many orders per tick
Exported to JForex platform and ran on live data --->resulted in that abnormal behaviour Placing too many orders per tick

I noticed that when the market is a bit slow hence the Strategy receives ticks with some delay it works fine but as soon as ticks start coming in quick this the problem occurs.

To check my theory I change the system to"onCandle" start and tested on live data on "10 seconds" time frame/candle when I noticed even in this situation the system places too many order(when I say too many, I mean more than it should) when the market moves a bit quick(High rate of incoming tick). To me it seems that the platform can not handle such fast speed process.

Any working solution? Perhaps a away to limit the number of orders? a Counter or something?! I am looking forward to your reply

Cheers
Here is the link to a short video capture on the performance of your VJF file running on live data feed through VJF onCandle start on 10 Seconds chart(you may notice the issue right at start of video and at minute 1:13 of the video)
https://youtu.be/ZwSPmyyuCQU


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Sat 20 Jun, 2015, 07:48 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hi Support team

Since I am really keen to overcome this issue, I did some further testing on live data.

I noticed that the server has got ONE second time limitation for removing/placing orders. To me it seemed that the platform/server do not allow to update/delete pending order more than once in a second.

Well I thought then if I can limit my system to remove/place pending order with 1 second delay it should resolve the issue. So I update Vadim's modified VJF file to the attached one. Unfortunately it did not solve the issue either. SO I am getting more certain that it could be due to a glitch in the platform which can not really handle fast incoming ticks.

I am not too sure if would help but I believe it will narrow down the investigation range.

NOTE: in the attached file the blocks to limit the system to update pending orders(Remove old ones/place new ones) once per second works only once per run and needs to be reset to work again. This was just a test to see if it works.

Awaiting your reply team.

Cheers


Attachments:
PendingOrdersPerTick_v3.vfs [44.54 KiB]
Downloaded 176 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.
 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Mon 22 Jun, 2015, 10:09 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hi Support Team

I was just wondering if you could kindly do me a favour and at least knowledge that the issue is being taken care of by you guys, and and hopefully there will a working solution for it please?

That would be greatly appreciated.

Regards


 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Mon 22 Jun, 2015, 12:18 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
____


Attachments:
PendingOrdersPerTick_v4.vfs [44.31 KiB]
Downloaded 177 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.
 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Mon 22 Jun, 2015, 12:54 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Last update


Attachments:
PendingOrdersPerTick_v7.vfs [44.95 KiB]
Downloaded 221 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.
 
 Post subject: Re: Placing Pending Orders Per Tick Post rating: 0   New post Posted: Mon 29 Jun, 2015, 08:29 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hi Vadim

first of all thx for your time over that live chat to go through this issue. It came to my attention that the system does not work propoerly and multiple orders is placed per tick when run it LOCAL. As soon as I run the system on REMOTE everything works just fine.

So I guess there must be something when u run the systems locally, perhaps need to be looked again.

but at the end it solved my problem .

Thanks


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com