I made a copy from the NT8 Indicator "PriorDayOHLC" and reduced its a bit for own experiences for working only with the prior high and low.
Now I want to add two rectangle objects.
This both rectangles should be drawn in the current day starting from the prior day high and low.
For example:
if the range (100 percent) between the prior days high (10.200) and low (10.000) is 200 points:
- the upper rectangle should be drawn between 10.160 and 10.200 (40 points = 20 percent of the range
- the lower rectangle should be drawn between 10.000 and 10.040 (40 points = 20 percent of the range
Start is the current day and the end is the current bar.
Both rectangles with a part-transparence field and borders.
I found this code in the NT8 Help:
Draw.Rectangle(this,"tag1",false,10,Low[10]-TickSize,5,High[5]+TickSize,Brushes.PaleGreen,Brushes.PaleGreen,2);
But each position, I tried to use this example, was failing.
Is there a problem with the "AddPlot"-method in the original indicator?
Can one of you build me an working example?
Or giving me a fully step-by-step-instruction, so that I can solve the problem?
Thank you!
Best regards,
Rainbowtrader


Comment