I have a stochastic type study with setPriceStudy(false) configured,
Then I use the Shift-Drag operation to place the study on the price window with its own scale.
Calls (w/in that study) to drawShapeRelative() places those shapes on the same scale as the stochasting in the study.
But calls to drawLineRelative() place the lines on the price scale (thus my lines w/ Y values 0 to 100 are way off the bottom of the chart).
Is there something I am doing wrong to cause this to happen, or is drawLine supposed to work in a different scale than drawShape?
In the attached image, note the same study is on the chart twice. At the bottom, the lines and triangle symbols are clearly visible where they should be. At the top in the price window, only the simbols are visible. To see the lines, you have to scale the price window all the way until the 0 value line is visible.
Thanks
Then I use the Shift-Drag operation to place the study on the price window with its own scale.
Calls (w/in that study) to drawShapeRelative() places those shapes on the same scale as the stochasting in the study.
But calls to drawLineRelative() place the lines on the price scale (thus my lines w/ Y values 0 to 100 are way off the bottom of the chart).
Is there something I am doing wrong to cause this to happen, or is drawLine supposed to work in a different scale than drawShape?
In the attached image, note the same study is on the chart twice. At the bottom, the lines and triangle symbols are clearly visible where they should be. At the top in the price window, only the simbols are visible. To see the lines, you have to scale the price window all the way until the 0 value line is visible.
Thanks
Comment