Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (EternallyCurious, howardR), 646 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Tick yes Tick no #474890
11/11/18 21:04
11/11/18 21:04
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi guys,

I ask a question that could change my life laugh
If I use BarPeriod = 1 or BarPeriod = 60 with set(TICKS) what changes?

I'm using the second case but I have a different results.
Should be the same with set(TICKS) flag?

Thanks for the support

Re: Tick yes Tick no [Re: tradingest] #474891
11/11/18 21:50
11/11/18 21:50
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
run() is invoked once every bar, regardless of the TICKS flag.

Re: Tick yes Tick no [Re: AndrewAMD] #474892
11/11/18 21:53
11/11/18 21:53
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Originally Posted By: AndrewAMD
run() is invoked once every bar, regardless of the TICKS flag.


but with set(TICKS) the result are different.
set(TICKS) what modifies?

BarPeriod = 1
BarPeriod = 1 with set(TICKS) --> result different

I expected the same result. Why not?

Re: Tick yes Tick no [Re: tradingest] #474893
11/11/18 22:18
11/11/18 22:18
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
This depends on your script. In TICKS mode, your stop losses get triggered differently, for example.

Re: Tick yes Tick no [Re: AndrewAMD] #474894
11/11/18 22:54
11/11/18 22:54
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Originally Posted By: AndrewAMD
This depends on your script. In TICKS mode, your stop losses get triggered differently, for example.


AndrewAMD thanks so mush for this answers.

In TICKS mode what is the trigger? Is it possible to have an example?
When you said ticks mode that means set(TICKS) in fuction run()?

For me understand this is very important.

thanks in advance for the help

Re: Tick yes Tick no [Re: tradingest] #474909
11/12/18 15:40
11/12/18 15:40
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
Look in the manual, under TICKS
http://zorro-project.com/manual/en/mode.htm

Re: Tick yes Tick no [Re: Dalla] #474914
11/12/18 19:32
11/12/18 19:32
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
thanks Dalla,

I read but I don't understand the difference on triggered stop


Moderated by  Petra 

Gamestudio download | chip programmers | 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