Point & Figure (Update 08. Oct 2014) V4.0.2

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

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby moomoofx » Wed May 28, 2014 7:31 am

This is a great thread. Well done on the coding, very impressive.

Any ideas why we can't use bar indicators on the view in a strategy? The backtester just keeps crashing for me.

Cheers,
MooMooFX
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby Gidien » Wed May 28, 2014 11:52 am

moomoofx wrote:This is a great thread. Well done on the coding, very impressive.

Any ideas why we can't use bar indicators on the view in a strategy? The backtester just keeps crashing for me.

Cheers,
MooMooFX


I thought, that I had solved this problem. Did have your code for me, then i can try to debug this issue.

Gidien
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby moomoofx » Thu May 29, 2014 2:45 am

I'm not talking about this specific view, I mean Views in general in the new MarketScope.

Here is a small example to illustrate the problem.

A simple strategy that creates an ATR indicator on top of the Renko_Charts view.
RenkoATR.lua
(15.5 KiB) Downloaded 1136 times


This is a slightly different version of the Renko_Charts view though because the original one crashes in the backtester.
Renko_candles_New.lua
(8.51 KiB) Downloaded 1133 times
Renko_candles_New.lua.rc
(4.31 KiB) Downloaded 1057 times


You'll note that the ATR requires a bar source, and hence we use the view's candle group as the ATRs source. When this is done however, the strategy crashes the backtester and the debugger gets stuck in a loop.

Any ideas? If you have some work-around to this problem I would greatly appreciate knowing. Right now, the only thing I can think of is to re-implement bar indicator in the view!!

Cheers,
MooMooFX
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby Gidien » Thu May 29, 2014 3:56 am

I cannot test it, because i dont have "ATROMAR" indicator. If i use the standart "ATR" then i didn't see a crash.

Do you use the Lua Strategy Debugger or the Debugger from the Trading Station?

-- update indicators.
RenkoView:update(core.UpdateLast);

This part in the strategy is not needed , because a View indicator has no update function.

A View indicator is updated by the offers subscribtion.
core.host:execute("subscribeTradeEvents", 2000, "offers");

Gidien
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby moomoofx » Thu May 29, 2014 4:13 am

Oh so sorry!

I created a new version of ATR with trace stratements in it while trying to debug it. It turns out the update method in the ATR method never ends up getting called. The prepare does though.

You can either change ATROMAR to ATR, or use the attached.

Lua Strategy Debugger (stuck in a loop) and Strategy Backtester (crashes) both don't work. I don't know what the Debugger from Trading Station is?

Thanks for taking the time to look at this!
Attachments
ATROMAR.lua
(3.22 KiB) Downloaded 1069 times
ATROMAR.lua.rc
(2.85 KiB) Downloaded 1035 times
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby moomoofx » Thu May 29, 2014 7:04 am

Valeria fixed it for me.

It turns out the candleGroup needs a global reference.

Code: Select all
local candles;

function Prepare( nameOnly)
....
    candles = RenkoView:getCandleOutput(0);
    ATR = core.indicators:create("ATR", candles, ATR_Period);
...


Thanks Valeria!
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby Jabez3 » Tue Sep 16, 2014 8:29 am

When using Method "ATR' I do not get alerts to work. But when using Method "Pip" they seem to work, most of the time. Since around April 2014 I have been using Paf_View V4.0.1 and PF_Strategy_Server, has there been any updates that I may have missed?

Thanks,
Jabez
Jabez3
 
Posts: 14
Joined: Thu Mar 14, 2013 5:29 pm

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby Gidien » Wed Sep 17, 2014 2:27 am

Jabez3 wrote:When using Method "ATR' I do not get alerts to work. But when using Method "Pip" they seem to work, most of the time. Since around April 2014 I have been using Paf_View V4.0.1 and PF_Strategy_Server, has there been any updates that I may have missed?

Thanks,
Jabez



You don't miss any update. I just working on a Point and Figure Strategy without the pipe workaround. I also did some changes in the PaF_View , but is not public at the moment.

There is not different between ATR and PIP. Alerts should send in the same way.

Sometimes the Pipe is not working. If this happen then "Upps - Strategy is not running" is shown at point 1. See attached picture.

I used ATR method and the last Signals were received successfully.

I think the Strategy will be available in 4 or 6 weeks.


best

Gidien

alters.png
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: Point & Figure (Update 24. Apr 2014) V4.0.1

Postby Jabez3 » Wed Sep 17, 2014 10:59 am

Thanks for the update Gidien, I look forward to your new release.

Jabez
Jabez3
 
Posts: 14
Joined: Thu Mar 14, 2013 5:29 pm

Re: Point & Figure (Update 08. Oct 2014) V4.0.2

Postby Gidien » Wed Oct 08, 2014 4:18 am

Push new version, see post 1.

best

Gidien
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 45 guests