Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ATR, DomPhase and TimeFrame crash #441501
05/25/14 12:30
05/25/14 12:30
Joined: Oct 2013
Posts: 18
5
512mb Offline OP
Newbie
512mb  Offline OP
Newbie
5

Joined: Oct 2013
Posts: 18
Got inconsistant series here:

function run()
{
BarPeriod = 15;
// TimeFrame=2;// uncomment to crash

vars Price = series(price());
vars DomPhase=series(sin(DominantPhase(Price,80)+PI/4));

if(rDominantPeriod>40)
if((ATR(5)/PIP)>1)
{}

// Workaround:
// var x=ATR(5)/PIP;
// if(rDominantPeriod>40)
// if(x>1)
// {}
}

Also there is 'i' omitted in word "Automation" in Zorro window and in the manual. cool

Re: ATR, DomPhase and TimeFrame crash [Re: 512mb] #441517
05/26/14 02:19
05/26/14 02:19
Joined: Jul 2013
Posts: 522
D
dusktrader Offline
User
dusktrader  Offline
User
D

Joined: Jul 2013
Posts: 522
Hey 512mb, check the manual on ATR function. It does say that when TimeFrame>1, that ATR() will internally create a series (therefore, the ATR-created series becomes inconsistent since it wouldnt be called on every iteration).

You can't create a series inside of conditional statement. Instead, I think your workaround is the correct solution in this case.

Re: ATR, DomPhase and TimeFrame crash [Re: dusktrader] #441522
05/26/14 08:14
05/26/14 08:14
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
As to the missing "i", there is no word "Automation" in the Zorro manual - that might be the reason that you can't find the "i" wink.

Re: ATR, DomPhase and TimeFrame crash [Re: jcl] #441534
05/26/14 11:45
05/26/14 11:45
Joined: Oct 2013
Posts: 18
5
512mb Offline OP
Newbie
512mb  Offline OP
Newbie
5

Joined: Oct 2013
Posts: 18
Thanks,

Yes there is word "Automaton" in online manual-in Site Map.

Last edited by 512mb; 05/26/14 11:51.
Re: ATR, DomPhase and TimeFrame crash [Re: 512mb] #441535
05/26/14 11:57
05/26/14 11:57
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt

Re: ATR, DomPhase and TimeFrame crash [Re: jcl] #441555
05/26/14 23:57
05/26/14 23:57
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California


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