I need guide about a starting point to create a study or a kind of “indicator” to plot let’s say the ES (S&P future), but the plot need to be generated within 2 conditions:
- The condition 1 is the chart plot be starting from 0 in a specified cycle, let’s say monthly cycle.
- The condition 2 is the chart plot be in dollar change starting in $0 at the beginning of the defined cycle.
Let’s put an example:
Specifying and using the cycle called ‘Month’, it means the chart will show from Sunday to Friday the plot of the ES, starting in $0 on Sunday at the open market time, and after this the study will start drawing the chart just as the ES does, but the generated chart instead to be drawn as a standard chart, let’s say plotting:
4,100.00
4,100.25
4,100.50
4,100.25
4,100.00
4,099.75
4,099.50
…
Instead of that, the ES quote values the indicator would generate are the ES changes from the beginning of the cycle, just as a normal chart but not showing the real quotes, no, showing the tick dollar value changes:
$0.00
$12.50
$25.00
$12.50
$0.00
-$12.50
-$25.00
… and so on until the last tick at the end of the specified kind of cycle, in this case on Friday at the market close time.
I don’t know how start to work with this, to take the ES quote, to specify that the chart be divided by cycles, like a kind of slices of the ES standard chart, then specify it need to start from $0 and after this keep plotting and drawing the chart but in terms of dollars change from the start point.
I haven't seen anything similar to take it as a starting point and I would like to ask to the person that will give the answer, that please ask to the others coworkers in the development area to see if someone could provide maybe a template or any code portion with which I could start
Thank you
Comment