Pivot Point Strategy

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Pivot Point Strategy

Postby mangonel » Wed Mar 10, 2021 1:16 pm

Greetings to everyone ! Apprentice i have an idea-request for a strategy at the pivot points, if it's possible.

The general idea as an example is this :

For breakaway :

If current R1 are higher than previous R1 then BUY at the level of previous R1 and close position at current R1.
If current R1 are lower than previous R1 then BUY at the current R1 and close position at the level of previous R1.

If current S1 are higher than previous S1 then SELL at current S1 and close position at the level of previous S1.
If current S1 are lower than previous S1 then SELL at the level of previous S1 and close position at current S1.

For the opposite manner as a reverse strategy :

If current R1 are higher than previous R1 then SELL at current R1 and close position at the level of previous R1.
If current R1 are lower than previous R1 then SELL at the level of previous R1 and close position at current R1.

If current S1 are higher than previous S1 then BUY at the level of previous S1 and close position at current S1.
If current S1 are lower than previous S1 then BUY at current S1 and close position at the level of previous S1.

So, i was thinking the parameters like this :

Price type : Bid, Ask
Time frame : m1,m5,m15,m30,H1,H2,H3,H4,H6,H8,D1,W1,M1
Pivot time frame : m1,m5,m15,m30,H1,H2,H3,H4,H6,H8,D1,W1,M1
Calculation mode : Classic Pivot, Camarilla, Woodie, Fibonacci, Fibonacci Retracement
Allow strategy to trade : Yes, No
Allowed side : Buy, Sell, Both
Account to trade on :.....
Trade amount in lots : 1,2,3,4,.....
Type of signal : Direct, Reverse
Entry execution type : Live, End of turn
Allow multiple : Yes, No
Position limit :0,1,2,3...(Zero for unlimited)
Close on opposite : Yes, No
Breakeven in pips :...-3,-2,-1,0,1,2,3...
Type of strategy : Breakaway, Reverse

With the following (Action, No Action) i mean that after i choose let's say the Breakaway type of strategy, if the Resistances or some of them (R4,R3,R2,R1)
are in the Action mode, then they will trade the
same way as i describe above for the R1 and S1 example. The same for Pivot(P) and the Supports (S1,S2,S3,S4)

R4 : Action, No Action
R4 Stop : No stop,R3,R2,R1,P,S1,S2,S3,S4
R3 : Action, No Action
R3 Stop : No stop,R4,R2,R1,P,S1,S2,S3,S4
R2 : Action, No Action
R2 Stop : No stop,R4,R3,R1,P,S1,S2,S3,S4
R1 : Action, No Action
R1 Stop : No stop,R4,R3,R2,P,S1,S2,S3,S4
P : Action, No Action
P Stop : No stop,R4,R3,R2,R1,S1,S2,S3,S4
S1 : Action, No Action
S1 Stop : No stop,R4,R3,R2,R1,P,S2,S3,S4
S2 : Action, No Action
S2 Stop : No stop,R4,R3,R2,R1,P,S1,S3,S4
S3 : Action, No Action
S3 Stop : No stop,R4,R3,R2,R1,P,S1,S2,S4
S4 : Action, No Action
S4 Stop : No stop,R4,R3,R2,R1,P,S1,S2,S3

Apprentice thank you in advance as always !
mangonel
 
Posts: 46
Joined: Thu Mar 17, 2016 4:16 pm

Re: Pivot Point Strategy

Postby Apprentice » Thu Mar 11, 2021 4:33 am

Your request is added to the development list.
Development reference 269.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Pivot Point Strategy

Postby mangonel » Thu Mar 11, 2021 12:10 pm

Apprentice is it posible to add an extra parameter at the strategy to trade only once per period ?
Trade once per period : Yes,No
These is different than Allow multiple.
I mean that if the strategy trade at the current period once,then no more trades will create for the same period.
As an example at the image, if i choose the Yes in the parameter Trade once per period then the strategy will BUY at Current R1 it will
Close the position at Previous R1 and no more trades will be placed until the Current R1 ends.

Thank you.
Attachments
ssss.png
mangonel
 
Posts: 46
Joined: Thu Mar 17, 2016 4:16 pm

Re: Pivot Point Strategy

Postby Apprentice » Fri Mar 12, 2021 4:02 am

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

I didn't manage to understand the second part of the requirements. It looks like a completely separate strategy for me.
Attachments
Pivot Point mangonel strategy.lua
(24.39 KiB) Downloaded 171 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 23 guests