Period Slider issue

Posted By: Cstyle

Period Slider issue - 08/03/16 13:37

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!
Posted By: Cstyle

Re: Period Slider issue - 08/03/16 13:40

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!
Posted By: Sphin

Re: Period Slider issue - 08/03/16 17:01

Why don't you set BarPeriod by script? The period slider then moves magically to the value you set there.
Posted By: jcl

Re: Period Slider issue - 08/04/16 13:55

When a script is started the first time, the sliders move to their default positions. On all subsequent starts they keep their last positions.
Posted By: Cstyle

Re: Period Slider issue - 08/05/16 19:31

Good advice. Thanks!
© 2024 lite-C Forums