Slopey Peaky Truly Ranging Bob

Post Reply
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.

Slopey Peaky Truly Ranging Bob

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:
MAKE SURE YOU READ THIS POST http://www.stevehopwoodforex.com/phpBB3 ... 41#p111241 There was a Forex bloodbath on Jan 15th 2015 that you need to know about.


You need the "SPB core library.mqh" file in your platform's Include folder. Download it from viewtopic.php?p=159559#p159559


Rangy makes a note of the daily open price, then measures the ATR. Rangy trades:
  • Buys when the setup is long and the market has fallen by the ATR from the daily open.
  • Sells when the setup is short and the market has risen by the ATR from the daily open.
The inputs:
  • EveryTickMode reads ATR and the open of each new TradingTimeFrame candle. Set this to 'true' if you want bang up to date values.
  • TtfAtrPeriod is the same as entering the 'Period' input when dragging the indi onto your chart.
  • TtfAtrMultiplier: most people use multiples of the 'raw' ATR values. This input allows you to do this. Enter 0.5 to use 50% of ATR. Enter 1.25 to use 125% of ATR, and so on.
  • CloseAtDailyOpen tells Rangy to close trades when the market has returned to the daily open price.
Rangy will only send a LONG/SHORT signal to TDesk when the market has moved ATR pips away from the DO. It will send a FLAT signal until then.

:xm: :rocket:

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.
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.

Idiotic bloop alert

Post by SteveHopwood »

I just loaded Rangy onto my vps. He cheerfully started sending baskets of trades and then immediately deleting some pairs, then loading and deleting them repeatedly. Just whip over to your demo before reading on, and disable EA's so you do not annoy your broker.

I found the bloop as soon as I looked. It is fixed in post 1.

This is an easy DIY.

Go to: bool lookForTradeClosure(int ticket, int pairIndex)

Scroll down a few lines to:
if (betterOrderSelect(ticket, SELECT_BY_TICKET) && OrderCloseTime() > 0) return(true);

Add this underneath:
getBasics(OrderSymbol() );

Do a search for:
if (atrVal[pairIndex] >= dailyOpen[pairIndex])

Replace it with:
if (ask >= dailyOpen[pairIndex])

Do a search for:
if (atrVal[pairIndex] <= dailyOpen[pairIndex])

Replace it with:
if (bid <= dailyOpen[pairIndex])

Oops. :oops:

:xm: :rocket:
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.
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.

Slopey Peaky Truly Ranging Bob

Post by SteveHopwood »

V 1a is in post 1, with the hidden stop loss and scaling back in code added.

You need the "SPB core library.mqh" file in your platform's Include folder. Download it from viewtopic.php?p=159559#p159559


:xm: :rocket:
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.
Post Reply

Return to “Super Slope EA's”