Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Concept of LookBack and LoadHistory #453491
07/29/15 05:14
07/29/15 05:14
Joined: Feb 2015
Posts: 11
C
chirpydog Offline OP
Newbie
chirpydog  Offline OP
Newbie
C

Joined: Feb 2015
Posts: 11
hi, i would like to write a simple intraday scalping script that runs every 1 min..

While i am using LookBack=1440 to calculate the day High and Low, can i use history data to calculate further points like previous day high/low, weekly high/low etc..... or i need to set LookBack to cover the time range ?

Many thanks!

Re: Concept of LookBack and LoadHistory [Re: chirpydog] #453517
07/30/15 08:12
07/30/15 08:12
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
You need to set LookBack to cover the time range. But you can use the PRELOAD flag, so the data is taken from the history and needs not be completely loaded at the begin of a trade session.

Re: Concept of LookBack and LoadHistory [Re: jcl] #453521
07/30/15 13:59
07/30/15 13:59
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
I am suspicious that you have set LookBack to 1440 ... What's your BarPeriod? 1 ? LookBack is expressed in number of Bars, not number of minutes.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1