Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, clint000, Grant, chsmac85, Martin_HH), 5,858 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Simple 5ema/8ema cross script [Re: jcl] #413457
12/14/12 05:47
12/14/12 05:47
Joined: Nov 2012
Posts: 209
S
SFF Offline
Member
SFF  Offline
Member
S

Joined: Nov 2012
Posts: 209
Hi,

I expected they are the same code thus the same result.But it is not same.
Please explain why.

if(crossUnder(EMA5,EMA8))
enterShort();
if(crossOver(EMA5,EMA8))
enterLong();


if(EMA5[1] > EMA8[1] && EMA5[0] > EMA8[0])
enterLong();
if(EMA5[1] < EMA8[1] && EMA5[0] < EMA8[0])
enterShort();

Edit:
I understand what is difference. Below is actually not the cross over/under signal.

Last edited by SFF; 12/14/12 06:31.
Re: Simple 5ema/8ema cross script [Re: jcl] #414162
12/24/12 11:25
12/24/12 11:25
Joined: Nov 2012
Posts: 209
S
SFF Offline
Member
SFF  Offline
Member
S

Joined: Nov 2012
Posts: 209
I understand now that we can get a negative return with a positive pips when lots are increased.

Page 2 of 2 1 2

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