Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, TipmyPip, RealSerious3D), 892 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EnterLong with different BarPeriod #475714
01/04/19 18:01
01/04/19 18:01
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37

I have different AR ( a big difference) if I change the BarPeriod.

If I change the BarPeriod=60 and I put BarPeriod=1 is very very different....I don't understand it because I enter the trade to the same hour.

Why is the difference? And if the reason is the bar ....how I can select the current price to an specifi hour regardless of Barperiod?


My code:
function horas(int timezone,int inicio, int final){

if(lhour(timezone) == inicio && minute(timezone)==0) { enterShort(); }

if(lhour(timezone) == final && minute(timezone)==0){ exitShort(); }

}



function run() {
set(PLOTNOW+PARAMETERS+TICKS);
StartDate = 2010;
EndDate = 2018;
BarPeriod = 60;
}

Thanks in advance

Re: EnterLong with different BarPeriod [Re: sdelatorre] #475715
01/04/19 18:35
01/04/19 18:35
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
run() does not have any entry logic.

Please post your entire script.

Re: EnterLong with different BarPeriod [Re: AndrewAMD] #475723
01/05/19 06:35
01/05/19 06:35
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37


The run only has the function :

horas(WET,7,13);


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1