I am trying to find some code that I can modify/adapt to automatically plot a line "x ticks/pts" below recent swing highs/above recent swing lows.
For example, swing high was at 100 and the retracement amount is say 4 then I want a line drawn/dots on the chart when/if the market reaches 96.
Ideally the line would only be a few bars to the left and right of the bar that hit the level i.e. I want the line to be clear and not just one dot ideally.
Look back period is x bars.
I found the swing indicator and it looks very close to what I want but I want the plot(dots) to be the swing high value - my value e.g. -3.
The code is fairly advanced for me.
Could someone please highlight the code in the Swing indicator that actually plots the dots and can I just subtract a value from it without stuffing up the rest of the code i.e. it still needs to detect new swing highs but when a new swing high is detected I want to plot the (new swing high - x).
The Word file has a screenshot of a chart with the Swing indicator applied.
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:
I'm looking for the same modification to the swing indicator that your were in this post. I'd like to display the Dots + or Minus - ticks from the pivot. Could you tell me if you were successful in finding what you were looking for ?