Page 5 of 9

Re: New PIVOT indicator

PostPosted: Mon Apr 30, 2012 10:03 am
by LordTwig
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?????? :?:

Re: New PIVOT indicator

PostPosted: Mon Apr 30, 2012 4:29 pm
by mfoste1
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.

Re: New PIVOT indicator

PostPosted: Mon May 07, 2012 1:09 am
by LordTwig
LordTwig wrote:I'm trying to write this strategy right now. Hopefully I'll have it finished shortly here.


Okay, great!

Re: New PIVOT indicator

PostPosted: Fri Jun 22, 2012 9:15 am
by LordTwig
Any update to when this is happening??????

Re: New PIVOT indicator

PostPosted: Tue Jul 24, 2012 12:24 pm
by jooka1978
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

Re: New PIVOT indicator

PostPosted: Wed Jul 25, 2012 2:46 am
by Ekaterina
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

New PIVOT indicator

PostPosted: Wed Jul 25, 2012 2:58 am
by LordTwig
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?

Re: New PIVOT indicator

PostPosted: Wed Jul 25, 2012 2:15 pm
by jooka1978
Hi Ekaterina,

Thank you very much you solved my problem! It works fine.

Re: New PIVOT indicator

PostPosted: Mon Jul 30, 2012 4:10 am
by mstreck
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

Re: New PIVOT indicator

PostPosted: Mon Jul 30, 2012 10:06 am
by omrshkh
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