Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by NeoDumont. 11/14/25 16:32
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 8,900 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 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,809
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,809
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,809
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,809
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 | 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