Good evening coders / traders,
I have developed an EA over the past few years. I must admit that I quit forex trading and coding for a long time. I have been forward testing the system for the past month or so with very good results. Although it is not a marginal system, it places a dynamic grid if the market turns against you.
The code is complete and the EA works very well, but there is something small that I can't seem to figure out. Is there a good coder out there that might be able to help me find a solution?
I would really appreciate any help I can get.
Thank you in advance.
Daubert.
The logic of Pip Smoker:
The EA can be run on multiple currency pairs and is not dependant on timeframes. I currently run it on USDJPY, USDCHF, GBPUSD, EURUSD,
EURJPY and EURGBP simultaneously.
It places two pending orders on the first tick of the currency pair in opposite directions. Buy and sell. The distance between the two
pending orders are defined by an external variable. Once any of the two is triggered and converted to a market order, the opposite pending order is deleted. The take profit is a variable that can be configured as well. The stop-loss is wide and not supposed to be triggered.
Once the market moves against the current trade, it places yet another market order in a grid format defined by an external variable. The grid and take profit increases with each trade placed. The set percentage of the grid distance is also a configurable variable. 30% is the default.
Further to this the EA also starts closing the biggest losing trade once a max number of trades have been reached.
The user can also choose if the grid should be static or grow dynamically, but I found that the dynamic grid yields better results.
It also has an option where all trades are closed per currency pair in case of emergency.
Finally, it also has a pause option where the user wants to ease out of trades. The EA will not place any more pending orders on that
particular currency pair if this option is active.
The EA works well and does what it is supposed to do, but here is the problem. I have noticed that the dynamic or static grid does not always
apply to some of the currency pairs. This happens in a random fashion and I can't seem to find the glitch in my code.
Please help.
Thank you
Daubert
I have developed an EA over the past few years. I must admit that I quit forex trading and coding for a long time. I have been forward testing the system for the past month or so with very good results. Although it is not a marginal system, it places a dynamic grid if the market turns against you.
The code is complete and the EA works very well, but there is something small that I can't seem to figure out. Is there a good coder out there that might be able to help me find a solution?
I would really appreciate any help I can get.
Thank you in advance.
Daubert.
The logic of Pip Smoker:
The EA can be run on multiple currency pairs and is not dependant on timeframes. I currently run it on USDJPY, USDCHF, GBPUSD, EURUSD,
EURJPY and EURGBP simultaneously.
It places two pending orders on the first tick of the currency pair in opposite directions. Buy and sell. The distance between the two
pending orders are defined by an external variable. Once any of the two is triggered and converted to a market order, the opposite pending order is deleted. The take profit is a variable that can be configured as well. The stop-loss is wide and not supposed to be triggered.
Once the market moves against the current trade, it places yet another market order in a grid format defined by an external variable. The grid and take profit increases with each trade placed. The set percentage of the grid distance is also a configurable variable. 30% is the default.
Further to this the EA also starts closing the biggest losing trade once a max number of trades have been reached.
The user can also choose if the grid should be static or grow dynamically, but I found that the dynamic grid yields better results.
It also has an option where all trades are closed per currency pair in case of emergency.
Finally, it also has a pause option where the user wants to ease out of trades. The EA will not place any more pending orders on that
particular currency pair if this option is active.
The EA works well and does what it is supposed to do, but here is the problem. I have noticed that the dynamic or static grid does not always
apply to some of the currency pairs. This happens in a random fashion and I can't seem to find the glitch in my code.
Please help.
Thank you
Daubert
Attached File(s)
PipSmoker2.2.mq4
20 KB
|
176 downloads