Need Indicator to read ADR

Post Reply
The_Snowman
Trader
Posts: 395
Joined: Sun Nov 27, 2011 8:24 am
Location: Australia

Need Indicator to read ADR

Post by The_Snowman »

Hello all,

This Lot Calculator indicator is great, it will plot on every chart, the lot size to trade for any currency pair, with a specified stop loss, eg 50 or 100 pips, displayed on screen.

The trouble is, I don't want to use the same pip stop loss on every pair; I would rather use the ADR (5) for example, so some pair would be 80 pips and other could be 161 even.

It takes to much time to go in and change this for every chart; needs to be set inside of the indicator.

Can anyone please have a look and see what is needed to make this read from ADR instead of fixed amount?

Thanks, John
You do not have the required permissions to view the files attached to this post.
The_Snowman
Trader
Posts: 395
Joined: Sun Nov 27, 2011 8:24 am
Location: Australia

Re: Need Indicator to read ADR

Post by The_Snowman »

BUMP

anyone can take a look, is it possible?

thanks, John

:?:
User avatar
mjws00
Trader
Posts: 609
Joined: Fri Jan 04, 2013 10:17 pm
Location: Victoria

Re: Need Indicator to read ADR

Post by mjws00 »

Here John,

Added quick and dirty ATR calc for you. You can set period and percent. Didn't mess with the output so if you want that fancier, tweak the text. I'd probably draw a long and a short stop line for a quick visual confirmation. Could be bugs ... but worked for me.

Mike
You do not have the required permissions to view the files attached to this post.
Reading the dark heart.
The_Snowman
Trader
Posts: 395
Joined: Sun Nov 27, 2011 8:24 am
Location: Australia

Re: Need Indicator to read ADR

Post by The_Snowman »

Mike,

That is fantastic, works great for me too, and reads the same as the famous Hopwood MPTM so pretty good effort

;)

It could use an extra line of text to display the current setting of ADR or ATR, I have settled on 10 for now, so just stuck that in the code :o

:arrow: Big thanks to Mike
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Coders Hangout”