Pipcruiser's Pipmasher

Post your derivatives/discussion threads here.
Locked
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Pipcruiser's Pipmasher

Post by SteveHopwood »

SERIOUS WARNING
  • Most Forex traders lose all their money.
  • Using the robot posted here in trading Forex does not guarantee success.
  • Trading this robot could lead to serious financial loss.
  • Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
  • This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
  • At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
  • To trade this robot, you have to understand:
    • How to use EA's.


Intro
Pipcruiser commissioned me to code this privately a few weeks ago. He has decided to share it with the rest of you - a gesture of enormous generosity. :clap: :clap: :clap: Thanks Niels, we owe you one.

This is an automation of a trading system that Niels has been trading live for some time. The EA is experimental; the system is not.

Remember what a bugger it was trading last week? How we sat around for ages waiting for the dd on our FB accounts to clear? How they cleared in a rush towards the end of the week?

Pipcruiser's Pipmasher stayed out of the markets until they started to move back into trend and the trades were fantastic. Two days saw the demo balance increase by 10%. There are 7 trades still open, with a combined dd of about 40 pips.

Trading strategy
For the purposes of this document: MN1(1) is last month; W1(1) is last week; D1(1) is yesterday.

PP is a D1 trend trading strategy. The setup is:
Long setup: MN1(1) up; W1(1) up; we are looking for a buy trigger.
Short setup: MN1(1) down; W1(1) down; we are looking for a sell trigger.

Any other combo is a mixed signal and so there can be no trade.

The trigger is the D1(1) going in the wrong direction.

Example trade
Taking a buy as an example:
  • MN1(1) up
  • W1(1) up
  • D1(1) down: send a pending trade PendingBufferPips above the high of the D1(1) candle.
Monday is a non-trading day as it is the start of the week, so we start looking for trades at the open of the daily candle from Tuesday onwards.

There is no trade on Tuesday if Monday's candle was up. If Tuesday then falls, PP sends the pending at the open of the Wednesday candle. If Wednesday then falls, PP is supposed to move the pending to the high + PendingBufferPips of the Wednesday candle at the open of Thursday, and so on.

Set your trading times to a few minutes after the open of the new daily candle to make sure it has had time to form - there is no rush. Leave PP a short window of time in which to send the pending. You can see how mine is set. Do not ask time-related questions here - I shall delete them. Look at the clock on your wall when you know your broker opens a new D1 candle and open your trading time c. 10 minutes after that.

Unfilled pendings are supposed to be deleted by an expiry time at the end of the week, calculated by PP. The code that calculates the deletion time is not quite correct yet, so we may have to manually delete on Friday.

This is an inspired example of pure price-action trading and I am hopeful that this could be the most successful bot I have coded so far. For sure, it stayed out of trouble last week during a period when even Shelley's Trading Fiend endured some DD for a substantial length of time.

Different brokers = different D1 candles
The default trading times are based on the broker's time. By broker time, every D1 candle opens at 0.00. Any reputable broker should open at a 0.00 time that equates with the recognisable start of the trading day i.e. Sydney open. Do not expect to have results even remotely comparable with 0.00 = Sydney if your broker adopts a different D1 candle open time. There is an example here of a monthly candle that moved just 7 pips down overall on out GP charts, and so showed up as a down candle. Brokers opening a short while later had the candle as an up candle. Ok, so it is rare for an MN1 candle to move so little, but it can happen. Frankly, in Forex trading timing is everything.

Inputs
  • Longer, Medium, Trading are the time frames, defaulting to monthly, weekly and daily. You can play around with different tf's if you wish. I know that Niels is.
  • CloseTradesOnTrendChange: if enabled, this tells PPoS to close market orders and delete pending trades if the trend is no longer with the trades.
  • MarketOrder: sends an immediate market trade if this is enabled. Disabled by default.
  • PendingOrder: sends a pending stop order at PendingBufferPips above/below the hilo of the previous candle, or the current market. You cannot have both MarketOrder and MarketOrder enabled.
  • UseTradingCandle: tells PP to use the previous candle hilo to calculate the stop order price.
  • FridayPendingExpiryHours: tells PP to calculate an expiry time - by default 16 hours into the Friday candle. Isn't working, probably because my formula is wrong.
  • TradeMonday: allows Monday trading, based on the Friday candle. Detects and ignores a Sunday candle. Disabled by default.
The remaining inputs are familiar to many of us, and described in the User Guide for new members.

Take profit and stop loss defaults are based on pipcruiser's post at http://www.stevehopwoodforex.com/phpBB3 ... 41#p101441.

Usual Bob stuff
It is all there along with the usual other stuff, so read the attached user guide for details. You can combine the above with Slope, Css, RSI2 etc. Take your pick. Use different time frames and play to your hearts content.

The TradingTimeFrame input
This must be the time frame you intend to trade as the EA bases all of its calculations on it. This allows you to change time frames on your chart to view different scenarios without disturbing the bot. The downside of getting this wrong is something you will discover to your cost.

Chart screenshots
The EA can take a picture of your chart when it opens or closes a trade. Use this to post pictures here if you suspect that the EA has not behaved as expected. There is a section of inputs just underneath the minimum pips section, with inputs to turn this featureon/ off and to adjust the height and width of the snap. Files are saved with the name "ChartScreenShot" and the ticket number, when the EA opens or closes a trade. Navigate to the files via File/Open Data Folder/MQL4/Files. Remember to delete these files from time to time to avoid clogging up your disk drive.

Setting up your charts
Pay a quick visit to http://www.stevehopwoodforex.com/phpBB3 ... =48&t=3860 and download Art's 'Charts Into Alphabetical Order script'. This script will save you hours of faffing around; instructions for use in the post.

Confused? Help is at hand
Worried that your questions about rock-bottom basics might get you into trouble here? You should be. There is a thread though where you can safely ask the most basic of questions: http://www.stevehopwoodforex.com/phpBB3 ... 80#p113580 Pay it a visit.

In conclusion
Have fun folks. Niels and I are.

:xm:


Matters of general interest
Go here to download and run the script that will fill your platform's missing chart history: http://www.stevehopwoodforex.com/phpBB3 ... f=15&t=254
Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... p?f=6&t=78 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration.

Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179

EA coding
I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here. If you want me to code your EA without sharing, then my fee is $100 payable into my paypal account. I explain why at http://www.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79, at the bottom of the post.

Useful utilities/EA's/scripts -
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
pipcruiser
Trader
Posts: 134
Joined: Wed Nov 16, 2011 8:24 am

Pipcruiser's Pipmasher

Post by pipcruiser »

Thanks for the kind words Steve ;)

Hopefully members can have fun with PP also and test different time frames and settings as well.

PP is in its original form built to catch and ride the big trends, which for example we have seen the last few months, and on the other hand, keep us out of "chop-chop" markets like last week. Sometimes it will trade a lot, other times just stay on the sidelines. Patience is key as they say.

PP can be used in many ways and on many pairs, TP strategies (MPTM) etc, pick you choice, but please share results here so we can fine tune this baby.

Thanks Steve for your patience in the process of building PP the last weeks.

Best,

Pipcruiser
"Perfection is Achieved Not When There Is Nothing More to Add, But When There Is Nothing Left to Take Away"...
User avatar
zader
Trader
Posts: 90
Joined: Fri Jul 06, 2012 8:46 am
Location: Rundown NW England

Pipcruiser's Pipmasher

Post by zader »

:good: Thanks for sharing Pipcruiser.

Steve I think you just need to comment out line 3748 to get rid of that Irritating bug.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Pipcruiser's Pipmasher

Post by SteveHopwood »

zader » Sun Oct 12, 2014 12:59 pm wrote: Steve I think you just need to comment out line 3748 to get rid of that Irritating bug.
Oh Ye Gods. How did I miss that? Remember back in school when told to check our spellings? I never spotted the spelling bloops either.

Cheers. Nice one. :clap:

Fix in post 1 for those of you who have already downloaded PP, otherwise go into the editor and remove line 3748.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
romsyam
Trader
Posts: 42
Joined: Thu May 30, 2013 9:26 pm
Location: Welsh Hills

Pipcruiser's Pipmasher

Post by romsyam »

thanks for sharing pipcruiser. A kind gesture :)

Steve you are like a machine lately. So many toys I don't know where to look. Like a kid at Christmas :xm:
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Pipcruiser's Pipmasher

Post by SteveHopwood »

romsyam » Sun Oct 12, 2014 9:29 pm wrote:thanks for sharing pipcruiser. A kind gesture :)

Steve you are like a machine lately. So many toys I don't know where to look. Like a kid at Christmas :xm:
Wonderful what I can do when not having to spend hours at a hospital bed.

I will slow down. It is just amazing how many brilliant ideas have been thrown at me at just the right time. Two months ago, I would have ignored them all.

In Forex as in the rest of life, timing is everything.

Couldn't explain that to the kids I teach the piano, could you? They might accept it from a passing stranger in a way that escapes them when their usual teacher drones on. :arrrg: :D

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
trader689
Trader
Posts: 644
Joined: Thu Nov 17, 2011 12:53 am

Pipcruiser's Pipmasher

Post by trader689 »

don't know what if anything im doing wrong but this thing is just refusing to compile so i cant load it on my charts. tried loading it into the data folder and waiting for it to automatically compile with global prime demo build 625 and build 646. also tried forcing a manual compiling in metaeditor but gives 'illegal operation use' error , line 486, column 32

any advice much appreciated as looks like a stonking ea
Last edited by trader689 on Mon Oct 13, 2014 10:54 am, edited 1 time in total.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Pipcruiser's Pipmasher

Post by SteveHopwood »

An extra "+" snuck into the version I uploaded. Goodness knows where it came from. The corrected version is now in post 1.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
trader689
Trader
Posts: 644
Joined: Thu Nov 17, 2011 12:53 am

Pipcruiser's Pipmasher

Post by trader689 »

thanks steve will load this one up tonight after work
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Pipcruiser's Pipmasher

Post by SteveHopwood »

Sorry folks. Niels emailed me to say he still cannot load the latest versions, so I downloaded from post 1 to check.

That blasted extra "+" was still there. :oops: Definitely fixed now - just downloaded to check.

Line 491 for those of you who want to make the change yourselves - extra + highlighted:
SM("Previous " + Trading + + " (" + TradingTF + ")" " tf candle direction: " + TradingDirection + NL);

Just remove it and recompile.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Locked

Return to “Pipcruiser's Pipmasher forum”