Dukascopy
 
 
Wiki JStore Search Login

Flow time for filtering period
 Post subject: Flow time for filtering period Post rating: 0   Post Posted: Mon 04 Nov, 2013, 12:29 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
I wonder how long it takes the passage of the IF block that is used for filtering and verification period and the last candle, if the last candle is equal to a given period (Last Bid Candle == Default Period)? Whether it takes 1 tick, 1 ms, 100 ms ....?

regards


 
 Post subject: Re: Flow time for filtering period Post rating: 0   Post Posted: Mon 04 Nov, 2013, 13:20 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
Do you mean the actual run time of the "if" command ?
If so that is relative, considering there are other factors that "delay" the response time, like server lag ;)
My advice is to not use precise time scalping(below 1 minute) because it won't work well. The delay will throw you off and lose alot of money (real or not).

Hope this helps.

Cheers


 
 Post subject: Re: Flow time for filtering period Post rating: 0   Post Posted: Sat 09 Nov, 2013, 14:16 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
I asked this question because I'm interested what happened in theory if server reject order for some reason and we have some block one assign block connected with open at market block.
Because people say "Picture say 1000 words", maybe it'll be more meaningful. :)


Image

When above conditions met, we have flow to other block(s).

Image
What is happening with Assign block if server reject order?
Did Output value in assign block will e changed or not?
Because condition in IF block for checking period will not be true, so flow to other block not be happened (or it be)?

Hope it is more understandable (or not). :mrgreen:

regards


Attachments:
Reject.gif [62.52 KiB]
Downloaded 509 times
IF check.gif [72.36 KiB]
Downloaded 428 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: Flow time for filtering period Post rating: 0   Post Posted: Mon 11 Nov, 2013, 16:27 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

I am afraid that I do not get your point... :(

If an order is rejected for some reasons and your output is set up like you described in the picture, the assign block will be "activated".
Therefore "OpenTrade" gets the value "0".

Please explain or describe more if I do not catch your point :)

thx


 
 Post subject: Re: Flow time for filtering period Post rating: 0   Post Posted: Mon 18 Nov, 2013, 12:26 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
Regards Dirk .
Apologies for the delay.
Because the Visual JForex a great help to us who know little or nothing in Java. , I wanted to get a little deeper into the logic behind the Visual JForex . In my post I'm not best describe what interests me and I will now try to explain better.

Start Point is onCandle .
After that we have two IF blocks to check currency pairs and the second is to check the desired period of time ( for example , 1 hour) .
If we have a period equal to the full hour, IF block forwards the signal to the other blocks to check whether achieved buy / sell conditions . If so, start an order to trade. Now follow my doubts. If the server for some reason refused the order , which specifically changes the value in the Assign block which is connected to the " IF order reject " ?
For example :
At 16:00:00:000 ( h , m, s, ms) we have the passage IF block to check period ( because the parameters are equal ) .
Parameters for checking BUY conditions are right and follows an order for BUY .
For some reason the server refuses to order , and in 16:00:01:000 returns a message that the order was denied.
Given that at the time of 16:00:01:000 conditions in IF block that checks the period are not equal , therefore no passage to other blocks (or has ?) .
If this is true, how is activated Assign block connected to the "If order reject " ?
I hope it's now a little clearer (although I doubt it :D)

Regards


Attachments:
File comment: example
FlowTime.vfs [24.77 KiB]
Downloaded 210 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: Flow time for filtering period Post rating: 1   Post Posted: Tue 19 Nov, 2013, 14:16 
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 the explanations.
Let me clarify couple of concepts: When a we use a period filter via an IF block as displayed in your screenshots, the strategy subscribe to a given period and will "consider" and "build" candles based on that specific period. Same for indicators and whatever component included in the strategy under such default period conditions.
Now back to your strategy: If for any reason you order gets rejected, the value 0 will be assigned to the "open trade" variable straight through . the strategy will no check the current time "16:00:01:000" in order to perform the needed actions IF "open trade" variable is equal to 0. Obviously your need to set a couple of conditions when using such logic settings so my question would be:
What if the order is rejected and open trade variable gets the value 0 --> What happens next ? Stop strategy ? another flow ?
(that's basically the point of Dirk's question about having more details)

Thanks!


 

Jump to:  

  © 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