FXCM Forex Trading

InsideBar with Trend Filter

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

InsideBar with Trend Filter

Postby Apprentice » Fri Apr 07, 2017 4:11 pm

EURGBP m1 (04-07-2017 2117).png

Based on the request.
viewtopic.php?f=27&t=64573
InsideBar with Trend Filter.lua
(7.39 KiB) Downloaded 106 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17130
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: InsideBar with Trend Filter

Postby baccicin » Fri Apr 07, 2017 4:44 pm

Many thanks Apprentice, great job. Just a couple of implementations:
- is it possible customize the arrow size?
- "the range of the current candles is < than 50% (customizable)"... I mean the range is calculated for both, high/low as well as the body. if the range high low (yesterday) is for example 100, the range of the current candle must be more than 50%... i mean from 50,01 to 99.99 and the same must be for the body of the current calculated on the body of the yesterday candle. Customizable.
if the ratio is less than 50, the signal is invalidated
Many thanks for your great job as usual.
Ciao. Fab
baccicin
 
Posts: 40
Joined: Sat Sep 20, 2014 12:15 pm

Re: InsideBar with Trend Filter

Postby Apprentice » Mon Apr 10, 2017 7:13 am

Can you to write this in pseudo code.

HighLowRange [-1]
HighLowRange [0]

OpenCloseRange [-1]
OpenCloseRange [0]

and f ...> ... then
if ... <... then
and so on.

Or try to skype me on Thursday.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17130
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: InsideBar with Trend Filter

Postby Apprentice » Wed Apr 19, 2017 2:51 pm

Something like this.

HL range of the current is less than previous candle HL Range
OC range of the current is less than previous candle OC Range
Both ranges are greater than 50 percent of the previous candle ranges.

Can you confirm.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17130
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: InsideBar with Trend Filter

Postby baccicin » Wed Apr 19, 2017 3:11 pm

Ciao, exactly, and less than 99,999% as per inside bar definition.
The ratio, 50-99.999 should be customizable.
Conditions for Ema34 remain the same.
Many thanks, ciao, have a nice evening.
Fabio
baccicin
 
Posts: 40
Joined: Sat Sep 20, 2014 12:15 pm

Re: InsideBar with Trend Filter

Postby Apprentice » Wed Apr 19, 2017 3:50 pm

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17130
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 11 guests