Period Range Indicator/Info

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Period Range Indicator/Info

Postby fxtrading » Sat Aug 15, 2020 6:47 am

I would like to request the following indicator to be developed, if possible:

The indicator to print/display information on a chart in top-Right corner (as per screenshot below):
indicator_Example.png


The following info to display:
Prior Period Range
Periods – n periods (excluding current in-progress candle)
Range High – highest high of last n periods (Range_High)
Range Low – lowest low of last n periods (Range_Low)
Range Close – Close of last full candle ( last_full_candle_close)

Long / Short
Entry - Entry(Long) - Entry(Short)
Stop - Stop(Long) (x,x pips) - Stop(Short) (x,x pips)
Limit - Limit(Long) (-x,x pips) - Limit(Short) (-x,x pips)

Indicator Variable Parameters:
Number of Periods (default = 24)
Position% (default = 25)
Risk/Reward (default = 1)

Calculations:
Entry(Long) = last_full_candle_close + ((Range_High – Range_Low) * Position%)
Entry(Short) = last_full_candle_close – ((Range_High – Range_Low) * Position%)
Stop(Long) = Entry(Long) – ((Range_High – Range_Low) * Position%)
Stop(Short) = Entry(Short) + ((Range_High – Range_Low) * Position%)
Limit(Long) = Entry(Long) + (((Range_High – Range_Low) * Position%) * Risk/Reward)
Limit(Short) = Entry(Short) - (((Range_High – Range_Low) * Position%) * Risk/Reward)

I hope this makes sense. If not, please let me know and I will try and explain...


Thank you,
fxtrading
 
Posts: 3
Joined: Sat Aug 15, 2020 6:31 am
Location: Centurion, Gauteng, South Africa

Re: Period Range Indicator/Info

Postby Apprentice » Mon Aug 17, 2020 5:39 am

Period Range Indicator Info.lua
(9.14 KiB) Downloaded 194 times

Can you check this numbers?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Period Range Indicator/Info

Postby fxtrading » Mon Aug 17, 2020 3:04 pm

Hi Apprentice,

Perfect - Thank you!
All calculations work perfectly!

Just a couple of (further requests if possible):
Minor - The third label in the first section should read "Range Close" ("Range Low" duplicated).
MarketScope Screenshot.jpg


Would it be possible to add the following functionality: could the data displayed be tied to the cursor position (i.e. calculations should be based on the location the cursor is at - for example: if the cursor is on a candle -20 away from the last candle, the range should start at candle -21 for n periods).
(Similar to the "Cursor Data" screen in MarketScope 2.0)

I hope this makes sense...???
fxtrading
 
Posts: 3
Joined: Sat Aug 15, 2020 6:31 am
Location: Centurion, Gauteng, South Africa

Re: Period Range Indicator/Info

Postby Apprentice » Tue Aug 18, 2020 5:00 am

Label fix.
viewtopic.php?f=17&t=70307

Your request is added to the development list.
Development reference 1901.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Period Range Indicator/Info

Postby Apprentice » Thu Aug 20, 2020 10:53 am

Try Period Range Indicator Info With Selector.lua
viewtopic.php?f=17&t=70307
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 18 guests