Site Administrator Swing Trader Data Scientist & DevOps
Manta, Ecuador
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
Posts: 49,792 since Jun 2009
Thanks: 32,326 given,
97,628
received
I confess I have never taken the time to learn Sierra's ASCIL programming even though I've been using Sierra for a couple of years or more (who can keep track...)
So I would appreciate it if one of you guys could write this for me:
a) Four inputs, second-fourth are optional. Input should be like the Study Price Overlay feature, where you can select a separate chart and then a particular study on that chart as the input.
b) Multiplier, each input should have a variable (double) multiplier. Default is 1 for all four.
c) When an input is rising, the score is +1 * multiplier for that input. When falling it is -1 * multiplier. It's a cumulative value.
All the time frames for the inputs will be consistent.
An example:
Input 1: Chart #5, ID 2. Value is currently rising.
Input 2: Chart #5, ID 3. Value is currently falling.
Input 3: Chart #11, ID 2. Value is currently rising.
Input 4: Chart #12, ID 4. Value is currently rising.
Score would be +1, -1, +1, +1 = 2.
If the prior bar score was 11, we add 2 to get 13 going into the next bar (cumulative).
Just saw this a few minutes ago. So, when adding the chart id and pulling from a study on the same chart the study has to be ordered below the referenced studies or the values are zero. I really haven't done a whole lot with referencing other chart id's, so I am not sure why this is. Will try to figure it out tomorrow, if i cant then i'll just post with the order caveat, which shouldn't present any other issues.
The following user says Thank You to vegasfoster for this post:
Site Administrator Swing Trader Data Scientist & DevOps
Manta, Ecuador
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
Posts: 49,792 since Jun 2009
Thanks: 32,326 given,
97,628
received
Vegas,
Hitting a bit of a problem. I can select the chart # correctly, but the list of studies within that chart are not populating. Instead it is populating the list of studies from the chart the indicator is attached to.
I tried applying it and coming back and same thing, the drop down list of studies to select is coming from the wrong chart (coming from applied chart instead of specified chart).
Now a workaround is possible, I could use the Study Price Overlay study and then have all of them on my chart, hidden, but it defeats part of the purpose of this indicator.
You might look at the Study Price Overlay study as an example, it lets you choose the chart and pulls the indicators from that chart.
@Big Mike - Here is the same code that vegasfoster built but modified the inputs as per your requirements.
PS: Haven't tested the functionality myself.. just modified the inputs section. Also might be a good idea to calculate the score either at the beginning of the bar or end of the bar to save CPU cycles (where this study is inserted). If so the code needs to be updated.
@Big Mike - One more update - Please pick up the current version instead ( replaced previously updated files )
The following user says Thank You to ejtrader for this post: