Why only the last few instances of the marker painting?
I wrote an indicator to mark bars for which the CCI crosses the zero line. In the image attached only 2 out of the 4 that should have painted are... I want all such instances to show up on the chart rolling back.
Because you've named them without providing unique names. Each bar the Draw() command will erase the old instance leaving only the new one.
If you wish all instances to remain, add + CurrentBar to your naming convention.
DrawDiamond("mydiamond" + CurrentBar.....)
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post: