BFS Signal

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

BFS Signal

Postby Apprentice » Fri Oct 21, 2016 3:13 am

EURUSD H8 (10-21-2016 0925).png

Based on request.
viewtopic.php?f=27&t=63999
BFS Signal.lua
(17.25 KiB) Downloaded 1045 times


The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: BFS Signal

Postby jupiter ange » Fri Oct 21, 2016 4:06 am

Apprentice wrote:
EURUSD H8 (10-21-2016 0925).png

Based on request.
viewtopic.php?f=27&t=63999
BFS Signal.lua


hello mario
almost there, when I compare his looks good but I have a difference of 20 pips from my original one of the input and output are slightly offset.
I'm not Programmer but just now I saw that there was a difference in this part of the code:

ArrayInitialize(g_ibuf_108, 0);
ArrayInitialize(g_ibuf_112, 0);
if (CalculatedBars > Bars || CalculatedBars == 0) CalculatedBars = Bars;
for (int li_4 = CalculatedBars - 1; li_4 >= 0; li_4--) {
ld_52 = 0;
for (int li_0 = PeriodWATR - 1; li_0 >= 0; li_0--) {
ld_60 = 1.0 * (PeriodWATR - li_0) / PeriodWATR + 1.0;
ld_52 += ld_60 * MathAbs(High[li_0 + li_4] - (Low[li_0 + li_4]));
}
ld_68 = ld_52 / PeriodWATR;
ld_76 = MathMax(ld_68, ld_76);
if (li_4 == CalculatedBars - 1 - PeriodWATR) ld_84 = ld_68;
may be that the problem comes from there?
thank you
jupiter ange
 
Posts: 33
Joined: Tue Jun 28, 2016 4:17 pm

Re: BFS Signal

Postby newton » Sat Oct 22, 2016 11:24 am

hi

can you create a strategy based on bfs indicator

indicator:
bfs indicator with default parameters

    buy level :0.5
    buy exit: 0.8
    sell level: 0.5
    sell exit: 0.2


    BUY: LINE 2> BUY LEVEL AND LINE 1< BUY EXIT LEVEL AND LINE 1 CROSS OVER LINE 2

    SELL: LINE 2< SELL LEVEL AND LINE1> BUY EXIT LEVEL AND LINE 1 CROSS UNDER LINE 2
newton
 
Posts: 85
Joined: Sun Oct 16, 2011 10:14 am

Re: BFS Signal

Postby Apprentice » Mon Oct 24, 2016 3:59 am

Try this version.
viewtopic.php?f=31&t=64022

LINE1> BUY EXIT LEVEL

This is typo?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: BFS Signal

Postby jupiter ange » Mon Nov 14, 2016 6:03 am

i programmer
cmake me a simple strategy with BFS signal and this corrected average download/file.php?id=16866

like this please
buy ask
bfs line 1 > bfs line 2
close > corrected averages

sell bid
bfs line 1 < bfs line 2
close < corrected averages
stop
limit
that it no more options please
many thanks
jupiter ange
 
Posts: 33
Joined: Tue Jun 28, 2016 4:17 pm



Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 53 guests