Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 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
Period Slider issue #461384
08/03/16 13:37
08/03/16 13:37
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
I'm trying to trade a custom strategy while connected to IB. I set the slider for period to 20. I click Trade. The slider automatically goes to 60. The slider is then grayed out, which forces me to trade on the 60 time frame. How do I trade on different time frames?

Thanks!

Re: Period Slider issue [Re: Cstyle] #461385
08/03/16 13:40
08/03/16 13:40
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Ok, I just clicked stop, reset the slider to 20, and clicked trade again. This time it stayed on 20. Odd.

Is there a way to get it to default to something other than 60? Do I have to follow this same procedure of stopping and restarting in order to get the correct period, or am I doing something wrong?

Thanks!

Re: Period Slider issue [Re: Cstyle] #461393
08/03/16 17:01
08/03/16 17:01
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Why don't you set BarPeriod by script? The period slider then moves magically to the value you set there.

Re: Period Slider issue [Re: Sphin] #461414
08/04/16 13:55
08/04/16 13:55
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
When a script is started the first time, the sliders move to their default positions. On all subsequent starts they keep their last positions.

Re: Period Slider issue [Re: Sphin] #461449
08/05/16 19:31
08/05/16 19:31
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Good advice. Thanks!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1