FXCM Forex Trading

New PIVOT indicator

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: New PIVOT indicator

Postby LordTwig » Mon Apr 30, 2012 10:03 am

Hey there,

LordTwig wrote:
mfoste1 wrote:Hey, I can't believe no one has tried to make a pivot strategy yet lol :D . I use pivot points in trading every single day. This would make an excellent algo.

It should work like this:

if prices touches pivot, support or resistance then open position in opposite direction

parameters

1. open position based on tick, candle close
2. once per day (yes/no)
3.one per side (yes/no)
4.allowed side (long/short)
5. type of signal (direct/reverse)


Apprentice wrote:Your request is added to the developmental cue.


So when is this getting developed???

LordTwig

So............????? :?:
We are all still waiting for this Pivot Strategy as far as I am aware :!:

When can we expect it?????? :?:
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am

Re: New PIVOT indicator

Postby mfoste1 » Mon Apr 30, 2012 4:29 pm

LordTwig wrote:Hey there,

LordTwig wrote:
mfoste1 wrote:Hey, I can't believe no one has tried to make a pivot strategy yet lol :D . I use pivot points in trading every single day. This would make an excellent algo.

It should work like this:

if prices touches pivot, support or resistance then open position in opposite direction

parameters

1. open position based on tick, candle close
2. once per day (yes/no)
3.one per side (yes/no)
4.allowed side (long/short)
5. type of signal (direct/reverse)


Apprentice wrote:Your request is added to the developmental cue.


So when is this getting developed???

LordTwig

So............????? :?:
We are all still waiting for this Pivot Strategy as far as I am aware :!:

When can we expect it?????? :?:



I'm trying to write this strategy right now. Hopefully I'll have it finished shortly here.
mfoste1
 
Posts: 66
Joined: Thu Oct 21, 2010 6:55 pm

Re: New PIVOT indicator

Postby LordTwig » Mon May 07, 2012 1:09 am

LordTwig wrote:I'm trying to write this strategy right now. Hopefully I'll have it finished shortly here.


Okay, great!
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am

Re: New PIVOT indicator

Postby LordTwig » Fri Jun 22, 2012 9:15 am

Any update to when this is happening??????
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am

Re: New PIVOT indicator

Postby jooka1978 » Tue Jul 24, 2012 12:24 pm

Hi,

I am trying to use PIVOT indicator in my strategy, but I can't find out how.
I create the pivot in the Prepare(nameOnly) function using the following parameters:
indicator=core.indicators:create("PIVOT", Source, par_pivotBS, par_pivotCalcMode, "TODAY");

The indicator is updated in the extUpdate function:
indicator:update(core.UpdateLast);

And then I try to get the value of the pivot levels using this, but it does not work:
var_R1 = indicator:getStream(0)[period];
Could anyone please tell me, how can I put a pivot level values (R1, R2, S1, S2 etc.) in a variable?
Thanks
jooka1978
 
Posts: 6
Joined: Tue Jul 24, 2012 12:06 pm

Re: New PIVOT indicator

Postby Ekaterina » Wed Jul 25, 2012 2:46 am

Hi jooka1978 ,

To get access through the streams you need History mode. In Todays mode only the simple lines are drawing.
Please replace your string of the code with this one:

Code: Select all
 

indicator=core.indicators:create("PIVOT", Source, par_pivotBS, par_pivotCalcMode, "HIST");




Best regards,
Ekaterina
Ekaterina
 

New PIVOT indicator

Postby LordTwig » Wed Jul 25, 2012 2:58 am

mfoste1 wrote:Hey, I can't believe no one has tried to make a pivot strategy yet lol . I use pivot points in trading every single day. This would make an excellent algo.

It should work like this:

if prices touches pivot, support or resistance then open position in opposite direction


and still no Pivot Strategy has yet been created.
How long do forum users have to wait for such a 'pivotal' Strategy?
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am

Re: New PIVOT indicator

Postby jooka1978 » Wed Jul 25, 2012 2:15 pm

Hi Ekaterina,

Thank you very much you solved my problem! It works fine.
jooka1978
 
Posts: 6
Joined: Tue Jul 24, 2012 12:06 pm

Re: New PIVOT indicator

Postby mstreck » Mon Jul 30, 2012 4:10 am

Just one small comment, as I had already debugged this earlier. The error message in line 272 of the pivot indicator seems incorrect.

assert(false, resources:get("R_SMODE_ERR") .. ": " .. instance.parameters.CalcMode);

It should be instance.parameters.ShowMode instead of the CalcMode.

Cheers,
Martin
mstreck
FXCodeBase: Initiate
 
Posts: 161
Joined: Wed May 30, 2012 1:42 am

Re: New PIVOT indicator

Postby omrshkh » Mon Jul 30, 2012 10:06 am

Hi all-I'm having problems with the pivot indicator in fxcm/mktscp in
that the lines are being drawn incorrectly. I suspect this has
something to do with the cut off time fxcm is using to calculate the
pivots. I've heard some traders say their pivots on fxcm are drawn as
of the 5pm close EST. I don't know how to check what close time my
system is taking. I have attached two charts, one fxcm (wrong) and one
from Igindex (correct) for audusd. I'm trading out of London time zone.
Hope someone can help. Thanks Omar Sheikh
Attachments
Untitled 1.pdf
(130.65 KiB) Downloaded 626 times
omrshkh
 
Posts: 1
Joined: Mon Jul 30, 2012 9:34 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 8 guests