Gamestudio Links
Zorro Links
Newest Posts
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
TMFs on options in live trading
by Spirit. 03/26/26 19:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Grant), 4,161 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 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,091
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,091
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,091
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,091
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