Forum: ThinkOrSwim
September 9th, 2019, 06:14 PM
|
Replies: 20
Views: 4,091
How to code this set up ?
Awesome! Instead of using an arbitrary number of ticks I would recommend using a threshold based on the size of the range. By doing this, the strategy will adjust itself to current volatility...
|
Forum: ThinkOrSwim
September 9th, 2019, 08:51 AM
|
Replies: 20
Views: 4,091
|
Forum: ThinkOrSwim
September 8th, 2019, 02:46 PM
|
Replies: 20
Views: 4,091
Hey I'm glad it is working for you!
Coding...
Hey I'm glad it is working for you!
Coding is one of those things you just need to look at and troubleshoot over and over again until it sinks in.
I would be more than happy to work with you on...
|
Forum: ThinkOrSwim
September 7th, 2019, 11:19 PM
|
Replies: 20
Views: 4,091
Here is the code!
declare upper;
def y_high = high(period=aggregationperiod.day)[1];
def y_low = low(period=aggregationperiod.day)[1];
def y_range = y_high-y_low;
def d_open =...
|
Forum: ThinkOrSwim
September 7th, 2019, 04:11 PM
|
Replies: 20
Views: 4,091
|