Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 604 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Skipped trades only on Verbose #481569
09/30/20 05:17
09/30/20 05:17
Joined: Apr 2019
Posts: 48
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 48
Albay
Hi I am testing this script on live price with IB api using 30 sec and other is 1m , 5m, 30m barperiod I observed that some trades aren't opening even if the condition are met which I expect to enter a trade right away. I printed a log but didn't see any skipped trades warning messages on default view instead only shows up when set the Verbose. The verbose looks like this

[SQQQ::L] Skipped (frame)

Any idea why is this happening? How do i resolve this to force opening the trade upon success condition?

function run()
{
set(LOGFILE);

vars Prices = series(price(0));
vars Trends = series(LowPass(Prices,500));

Stop = 4*ATR(100);

vars MMI_Raws = series(MMI(Prices,300));
vars MMI_Smooths = series(LowPass(MMI_Raws,300));

if(falling(MMI_Smooths)) {
if(valley(Trends)){
Lots = 1;
printf("GOLONG");
enterLong();
}
else if(peak(Trends)) {
Lots = 1;
printf("GOLONG");
enterShort();
}
}
}

Last edited by marr; 09/30/20 05:18.
Re: Skipped trades only on Verbose [Re: marr] #481570
09/30/20 09:52
09/30/20 09:52
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Did you eliminate TimeFrame from your sample code? If so, it’s the cause.

By the way, skipping trades when it’s not the correct frame is expected behavior, so it’s not an error.

Re: Skipped trades only on Verbose [Re: marr] #481571
09/30/20 14:30
09/30/20 14:30
Joined: Apr 2019
Posts: 48
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 48
Albay
I am currently using mutiple timeframe does that mean the entry functions needs to use the same timeframe as what was used for barperiod?

Re: Skipped trades only on Verbose [Re: marr] #481572
09/30/20 14:50
09/30/20 14:50
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
No, it means your enterLong() function will only be successfully executed when it is on the correct timeframe for its given algorithm.

In other words, it really is doing what you want it to do.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1