I also get them on ICM demo.alecsa72 » Wed Sep 20, 2017 7:57 pm wrote:Does anyone else having 130 errors?
I put it on live account, seems to be going well, but getting frequent error 130 messages
Screenshot and expert logfile attached (EA was renamed to HGI_Candle_Power_V1b)
Holy Graily Bob's Candle Power
-
firewight
- Trader
- Posts: 17
- Joined: Wed Oct 21, 2015 7:39 am
Holy Graily Bob's Candle Power
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Holy Graily Bob's Candle Power
CP only checks whether the market is already at or beyond, the candle's hilo. It does not check to see if the stop order price is far enough away from the market to fulfil the stop level requirements. When the proposed stop order price is not far enough from the market to meet these requirements, an 'invalid stop' error 130 is generated.alecsa72 » Wed Sep 20, 2017 11:38 am wrote:
Tickmill (Seychelles)
There is a crapql constant that returns the stop level - MODE_STOPLEVEL. Run the attached script and you will see what your broker's stop level is.
I could add code to deal with this were it not for this little gem from the documentation:
So there is every chance I would be wasting my time. I will add some code to stop the error showing and send an immediate market trade when it is generated.
MODE_STOPLEVEL
Stop level in points
A zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal. In the second case, GetLastError() can return error 130, because MODE_STOPLEVEL is actually "floating" here.
That will cause some trades to look as though they have been sent incorrectly. Tough. Take it up with your broker.
Notably, Global Prime has a zero stop level. GP clients do not care about this situation because it does not arise. So, time for another plug for GP.
Anybody who can become a Global Prime client but still is not one, is barking at the moon so far in the wrong direction that the moon you should be barking at is tapping you gently on the back, coughing discretely to gain your attention and saying softly, "Ahem. Try barking at me. You might get a reply."
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. pianodoodler@hotmail.com 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.
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. pianodoodler@hotmail.com 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.
- TraderJoeForex
- Trader
- Posts: 1157
- Joined: Fri Mar 08, 2013 10:29 pm
- Location: South London
Holy Graily Bob's Candle Power
#HallOfFameSteveHopwood » Wed Sep 20, 2017 12:32 pm wrote: Anybody who can become a Global Prime client but still is not one, is barking at the moon so far in the wrong direction that the moon you should be barking at is tapping you gently on the back, coughing discretely to gain your attention and saying softly, "Ahem. Try barking at me. You might get a reply."
-
firewight
- Trader
- Posts: 17
- Joined: Wed Oct 21, 2015 7:39 am
Holy Graily Bob's Candle Power
Any ideas is GP is ok for Australian clients? I always worry about using overseas brokers, it can make the scenarios for disputes really convoluted and difficult to deal with, and the international transfer fees can really suck for deposits and withdraws...SteveHopwood » Wed Sep 20, 2017 10:32 pm wrote:
Anybody who can become a Global Prime client but still is not one, is barking at the moon so far in the wrong direction that the moon you should be barking at is tapping you gently on the back, coughing discretely to gain your attention and saying softly, "Ahem. Try barking at me. You might get a reply."
EDIT: on closer inspection it seems they have an office in Bondi, so I will certainly check them out lol!
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Holy Graily Bob's Candle Power
They are an Aussie firm. Speak to Jeremy. He speaks Australian. Contact him via http://www.stevehopwoodforex.com/phpBB3 ... 762#p35762firewight » Wed Sep 20, 2017 12:45 pm wrote:SteveHopwood » Wed Sep 20, 2017 10:32 pm wrote:
Anybody who can become a Global Prime client but still is not one, is barking at the moon so far in the wrong direction that the moon you should be barking at is tapping you gently on the back, coughing discretely to gain your attention and saying softly, "Ahem. Try barking at me. You might get a reply."
EDIT: on closer inspection it seems they have an office in Bondi, so I will certainly check them out lol!
Mind, I am a tad on the surprised side that you have not noticed this thread before. It has been up for more than four years, after all.
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. pianodoodler@hotmail.com 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.
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. pianodoodler@hotmail.com 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.
-
firewight
- Trader
- Posts: 17
- Joined: Wed Oct 21, 2015 7:39 am
Holy Graily Bob's Candle Power
I have noticed it, but to be honest I use Pepper-Stone for my live trading, and havent had any real issues with them, so its a case of "if it aint broken dont fix it" etc... Certainly willing to have a look though!SteveHopwood » Wed Sep 20, 2017 11:01 pm wrote:
They are an Aussie firm. Speak to Jeremy. He speaks Australian. Contact him via http://www.stevehopwoodforex.com/phpBB3 ... 762#p35762
Mind, I am a tad on the surprised side that you have not noticed this thread before. It has been up for more than four years, after all.
EDIT: Some manipulation with the "Bully Pepperstone" name when typing it in here, I'm guessing you had some problems with them lol?
EDIT 2: I now have a GP demo running
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Holy Graily Bob's Candle Power
Version 1c is in post 1. I have suppressed the 'invalid stop' error alert and added code to send an immediate market order when the error is generated.
I am blown away by TJF's set file and have hard coded it as the defaults. I have added a couple of extra inputs to allow the bot to close the position so we can be flat for the weekend. Please read the details in the Versions from 1c onwards section in post 1.

I am blown away by TJF's set file and have hard coded it as the defaults. I have added a couple of extra inputs to allow the bot to close the position so we can be flat for the weekend. Please read the details in the Versions from 1c onwards section in post 1.
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. pianodoodler@hotmail.com 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.
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. pianodoodler@hotmail.com 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.
- cybersmart
- Trader
- Posts: 24
- Joined: Tue Aug 30, 2016 7:01 pm
Holy Graily Bob's Candle Power
I agree with you Steve, that .set file is just awesome.SteveHopwood » Wed Sep 20, 2017 5:36 pm wrote:Version 1c is in post 1. I have suppressed the 'invalid stop' error alert and added code to send an immediate market order when the error is generated.
I am blown away by TJF's set file and have hard coded it as the defaults. I have added a couple of extra inputs to allow the bot to close the position so we can be flat for the weekend. Please read the details in the Versions from 1c onwards section in post 1.
Do you think its possible to add a global basket close in a later version?
Thanks for your great EA!
Kevin
- TraderJoeForex
- Trader
- Posts: 1157
- Joined: Fri Mar 08, 2013 10:29 pm
- Location: South London
Holy Graily Bob's Candle Power
10,000+ pips in under a week is definately some sort of record. Interestingly tonight's news brought EU back to life as it was starting to look like GJ was the only worthwhile option.
You do not have the required permissions to view the files attached to this post.
-
SWG123
- Trader
- Posts: 565
- Joined: Wed Nov 16, 2011 3:02 pm
- Location: Cape Town
Holy Graily Bob's Candle Power
I'm curious, what prompted you to choose those two pairs in the first place?TraderJoeForex » Wed Sep 20, 2017 8:46 pm wrote:10,000+ pips in under a week is definately some sort of record. Interestingly tonight's news brought EU back to life as it was starting to look like GJ was the only worthwhile option.
I like them because EU is the most liquid pair and GJ has the longest continuous trading day of the the main currency combinations.