Highly Adaptable Pivot Strategy

Strategies are published here.

Moderator: admin

Re: Highly Adaptable Pivot Strategy

Postby moomoofx » Wed Apr 23, 2014 11:34 am

Hi,

Re: FJFX
Sorry, no ideas. Strategies are not dragged onto charts though but are configured through the Strategy Dashboard under Charts -> Alerts and Trading Automation ... Can you get any of the strategies that come with Trading Station to work?

Re: MaggieQ
This is not a bug maggie. In your screenshot of the history it says "Close trade .... by order MC" ... MC is Margin Called. This is somewhat expected given you never close trades out but keep entering into new positions and thus ran out of margin. If you look at the other screenshot you pasted you can see that the market kept moving in one direction and you kept on having your "R" conditions triggered.

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: Highly Adaptable Pivot Strategy

Postby refresc0 » Mon Apr 28, 2014 12:42 am

i slightly modified the code to use yesterday's pivot points because using current ones can trigger false positions as the current points are constantly moving with price. thus previous' day points are easier to work with because they are fixed.

Cheers
refresc0
 
Posts: 8
Joined: Thu Mar 27, 2014 10:14 pm

Re: Highly Adaptable Pivot Strategy

Postby moomoofx » Mon Apr 28, 2014 5:34 am

Hi refresc0,

The pivot levels should only update when a new candle for the chosen Pivot timeframe is presented. So, if your Pivot Levels are setup to be D1, then the pivot levels are only updated once per day.

You can confirm this in the code as the CalcLevels function is only executed when the Pivot's source is updated.

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: Highly Adaptable Pivot Strategy

Postby moomoofx » Mon May 05, 2014 12:43 am

Hi all,

The previous implementation did not start trading until the Pivot timeframe had updated at least once. This means when running on a live or demo account you have to wait until the new day before it could start trading (assuming the pivot timeframe is D1). This is not ideal, and the strategy should calculate the pivot levels as soon as it has a chance (much like the indicator does). I have changed the implementation accordingly.

Additionally, I changed how the strategy's calculation of the pivot levels ignores non-trading periods. I'm not certain, but I believe the previous version may have miscalculated pivot levels for pivot timeframes shorter than daily.

The new version I will post here. The previous version can still be accessed from the original post.

Cheers,
MooMooFX
Attachments
Highly Adaptable Pivot Strategy.lua
(23.99 KiB) Downloaded 1220 times
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Highly Adaptable Pivot Strategy

Postby moomoofx » Sun Jun 01, 2014 3:29 am

Paulo C wrote:Hi MooMoo, I wonder if it's possible a change, like having a limit on daily positions, ie contain a field for a maximum number of open positions, as is already happening, but also have another that limits the maximum number that program opens daily. Example, I want to have a maximum of 20 open positions but I also want the program to only open two new positions daily maximum.
Thanks in advance
Paulo C


This has now been implemented. The latest version of the strategy posted above has been updated to include a "Position Throttle" parameter that controls how many new positions can be opened within the same day. Day is as defined using the server date.

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: Highly Adaptable Pivot Strategy

Postby Robadub » Tue Dec 08, 2015 2:06 pm

Hi!!,

Ive been study the “Center pivot" and was wondering if
In the strategy can have this rules...

A. In the Pivot Action Section:
1.If yesterday "daily price" close above the center pivot; then Buy
2.If yesterday "daily price" close Below center pivot; then Sell

B. And if is not to much ask...Can have a RSI for the last 2 rules?

1.To the BUY action: when RSI is Below 38
2.To the Sell action: when RSI is Above 62

Thanks so much in advanced.
The work that u all have here is amazing and artistic!!
Robadub
 
Posts: 7
Joined: Tue Dec 08, 2015 9:20 am

Re: Highly Adaptable Pivot Strategy

Postby pipsqueezer » Tue Dec 08, 2015 3:35 pm

Fantasticly customizable strategy, great work. I use a strategy based on the London open pivots. Is there any chance that this strategy could be altered to include a way to change the time of the pivots, similar to what this indicator does?
http://fxcodebase.com/code/viewtopic.php?f=17&t=4564&hilit=day+pivots
Thanks
pipsqueezer
 
Posts: 1
Joined: Tue Dec 08, 2015 2:18 pm

Re: Highly Adaptable Pivot Strategy

Postby Apprentice » Wed Dec 16, 2015 5:42 am

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

Re: Highly Adaptable Pivot Strategy

Postby MC. Trend Trader » Wed Nov 30, 2016 4:46 am

Hi,
Can you please add following function
If long position is open and sell signal is given should be close long and open sell.

Thanks in advance
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Re: Highly Adaptable Pivot Strategy

Postby Apprentice » Sun Dec 18, 2016 9:28 am

Strategy was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36422
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 13 guests