stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

TP for pendings, ECN
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4572
Page 1 of 1
Author:  krzysiekqq2 [ Thu Jan 14, 2016 10:16 am ]
Post subject:  TP for pendings, ECN

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
Author:  SteveHopwood [ Fri Jan 15, 2016 11:17 pm ]
Post subject:  TP for pendings, ECN

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
Abandon this my friend.

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?



:xm:
All times are UTC Page 1 of 1