Hi, I am trying to modify Steve's HGBnG to have different TP for trades in HGI direction and opposite ones. The problem I face is a approach to modify TP in a way that pending orders at either direction have different TP's. Those TP's are at the same level for particular direction (close all trades at the same time reaching set level as TP) and not the same distance from price as it is with traditional TP for each order.
Any suggestion regarding code doing so would be appreciated.
Cheers,
Krzysiek
TP for pendings, ECN
- krzysiekqq2
- Trader
- Posts: 69
- Joined: Sun Oct 11, 2015 11:59 am
- Location: Gdynia, town at Baltic sea cost
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
TP for pendings, ECN
Abandon this my friend.krzysiekqq2 » Thu Jan 14, 2016 10:16 am wrote:Hi, I am trying to modify Steve's HGBnG to have different TP for trades in HGI direction and opposite ones. The problem I face is a approach to modify TP in a way that pending orders at either direction have different TP's. Those TP's are at the same level for particular direction (close all trades at the same time reaching set level as TP) and not the same distance from price as it is with traditional TP for each order.
Any suggestion regarding code doing so would be appreciated.
Cheers,
Krzysiek
A few years ago my coding skills were not as they are now. Back then, we had frequent visits from LUC.
LUC would invite his buddies around for anything from a light mid-morning coffe, to a full-blown overnight stay with drunken premising-destroying, arrest-and-charge-inducing behaviour.
LUC stands for the Law of Unintended Consequences. In other words, a code change here requires a code change there, but the code change there doesn't happen because the coder is not skillful to recognise its need. That is the light morning coffee visit. Trouble is, the change there can result in an equal number of changes to the there that were required from the here. That is LUC inviting his buddies for a three course dinner with wine thrown in. Next level is the overnight stay. No EA code survives that.
I did not intend you to fully understand that last paragraph. The bewilderment you are feeling on reading it is nothing compared to your bewilderment on trying to hunt down the bugs you will introduce to the coding through your lack of understanding of it, should you continue down you chosen path of self-destruction.
These days, we rarely meet the three course dinner stage but you will do so if you continue. It might take you a couple of weeks to see sense and give up, but you will give up eventually.Up to you how much pain you suffer in the meantime.
HGB'nG is actually quite a good piece of kit, courtesy of CyberEvil who commissioned me to code it AS A RESULT OF HIS MANUAL TRADING FOR SEVERAL MONTHS
Wouldn't care to stop trying to fuck it up with your ridiculous attempts to 'improve' it, would you?
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.