Hi Everyone,
Really need some help here.
Have been working on the concept and math analysis for over 2 1/2 years developing this trading system. I am not a programmer at all. Just started writing the indicators and EA over the last 6 months. My last programming goes back to the early '90's and that was 'Basic'. Have one indicator that is basically off the shelf, Semafor, with some minor math fixes and the rest I have developed from scratch after looking at 1000's of indicators and finding none that are really worth anyting. Free or purchased.
If I set in front of the computer and let the EA open trades and I close them according to the indicators the system averages from 200 to 600 pips a day of profit. Have seen 1361 pips in a day. The concept works. I just don't have the patience to sit in front of the monitors and watch it all day long. I want a life.
There are two issues that I am just pulling my hair out trying to solve.
1 - It will enter a trade on boot up, sometimes, without the indicators showing a trade entry. Usually the Semafor. Have set all the indicatos to zero but, it still happens
2 - The EA will never close a trade on a reverse trend signal from the indicators.
Basic system uses Range Bars, trading 12 different currency pairs. All of the indicators are individually set per currency pair. Tested the indicators using tick data dating back 10 - 12 years.
The heart of the system is an Active Channel Indicator, it changes its width between the Support and Resistance lines, in very minor increments, according to the price average to a set amount of candles. Within this channel are lines dividing it into 5 sections. If the channel width is too narrow, no trading is allowed. Prevents a lot of bad trades. Trade entry is also determined by where the trend reversal starts at within the channel. Money Management, as far as what risk percentage is used, is also determined by where the trend reversal starts within the channel. The closer to either the support or resistant line the larger the lot size used. And if a trend direction signal is not seen within the channel and the trend hits either the support or resistant line, the trade is closed. This part works fine.
One other main feature. When either a Buy or Sell Semafor strikes, an aging counter is started. Will not enter a trade if the Semafor Aging counter is exceeded. Have found out, from back testing, that this means the market is to indecisive and the risk is far to great to enter a trade. This is also set different for each currency pair.
The coding below includes only the Semafor aging, Channel strike point, Buy and Sell indicator logic and the logic for placing a Buy or Sell trade.
Two more item that will be included in the EA when these two issues are solved, and one of them, is Correlations. In theory and practice it improves the trading performace around 8% across the board. Mainly it prevents late trade entry which causes minor pip losses. The other is memory allocation. Have been working on a way to dump old history that MT4 keeps accumulating. Looks very promising so far. With the size of the programming and the number of currency pairs, depending on the daily activity, the EA must be rebooted between 6 to 10 times a day. If I can solve this major flaw in MT4, I will share this with all.
Please remember that I'm just a beginner in programming. Any suggestions are greatly appreaciated.
Really need some help here.
Have been working on the concept and math analysis for over 2 1/2 years developing this trading system. I am not a programmer at all. Just started writing the indicators and EA over the last 6 months. My last programming goes back to the early '90's and that was 'Basic'. Have one indicator that is basically off the shelf, Semafor, with some minor math fixes and the rest I have developed from scratch after looking at 1000's of indicators and finding none that are really worth anyting. Free or purchased.
If I set in front of the computer and let the EA open trades and I close them according to the indicators the system averages from 200 to 600 pips a day of profit. Have seen 1361 pips in a day. The concept works. I just don't have the patience to sit in front of the monitors and watch it all day long. I want a life.
There are two issues that I am just pulling my hair out trying to solve.
1 - It will enter a trade on boot up, sometimes, without the indicators showing a trade entry. Usually the Semafor. Have set all the indicatos to zero but, it still happens
2 - The EA will never close a trade on a reverse trend signal from the indicators.
Basic system uses Range Bars, trading 12 different currency pairs. All of the indicators are individually set per currency pair. Tested the indicators using tick data dating back 10 - 12 years.
The heart of the system is an Active Channel Indicator, it changes its width between the Support and Resistance lines, in very minor increments, according to the price average to a set amount of candles. Within this channel are lines dividing it into 5 sections. If the channel width is too narrow, no trading is allowed. Prevents a lot of bad trades. Trade entry is also determined by where the trend reversal starts at within the channel. Money Management, as far as what risk percentage is used, is also determined by where the trend reversal starts within the channel. The closer to either the support or resistant line the larger the lot size used. And if a trend direction signal is not seen within the channel and the trend hits either the support or resistant line, the trade is closed. This part works fine.
One other main feature. When either a Buy or Sell Semafor strikes, an aging counter is started. Will not enter a trade if the Semafor Aging counter is exceeded. Have found out, from back testing, that this means the market is to indecisive and the risk is far to great to enter a trade. This is also set different for each currency pair.
The coding below includes only the Semafor aging, Channel strike point, Buy and Sell indicator logic and the logic for placing a Buy or Sell trade.
Two more item that will be included in the EA when these two issues are solved, and one of them, is Correlations. In theory and practice it improves the trading performace around 8% across the board. Mainly it prevents late trade entry which causes minor pip losses. The other is memory allocation. Have been working on a way to dump old history that MT4 keeps accumulating. Looks very promising so far. With the size of the programming and the number of currency pairs, depending on the daily activity, the EA must be rebooted between 6 to 10 times a day. If I can solve this major flaw in MT4, I will share this with all.
Please remember that I'm just a beginner in programming. Any suggestions are greatly appreaciated.
Attached File(s)
Trading Code.mq4
15 KB
|
289 downloads