Download MetaTrader 5

Experts: SupportResistTrade

To add comments, please log in or register
Register as a seller and start making profit!
MetaQuotes Software Corp.
Moderator
181269
MetaQuotes Software Corp. 2008.10.02 06:46 

SupportResistTrade:

Trading by a break through of the support/resistance levels.

Author: Oleksandr

Piotr
1249
Piotr 2008.10.02 21:35  

HI


Why

  support = 10000;
  resist = 0; 

?


Can I change the VALUE ? During the test results are excellent but when test stops the loss is very big and the final result is VERY BAD. How can I optimize your Expert Advisor by changing the paramteres in MQL code ?


Regards,

Puncher

Oleksandr
1421
Oleksandr 2008.10.03 15:36  
puncher:

Why

  support = 10000;
  resist = 0;

Support and resist changes their values.

Support = the lowest price from numBars bars prices.

Resist = the highest price from numBars bars prices.

numBars - optimization param.

--

Problem with stops is solved easily by changing this part of code in function MarketAnalize:

  support = 10000;
  resist = 0;  
  for(int k = 1;k<=numBars;k++)
  {
   if(support>iLow(Symbol(),0,k))
     support = iLow(Symbol(),0,k);
   if(resist<iHigh(Symbol(),0,k))
     resist = iHigh(Symbol(),0,k);
  }   

Sorry, bad english, i'm from Ukraine =)

MQL4 Comments
16319
MQL4 Comments 2008.10.07 10:53  

Tested and the results is good.

But whenver there is a loss, it will be a big loss. Possible to include stop loss and other adjustable parameters e.g lot size....?? so that we can change it in the EA properties.

(I know that you have explained clearly how the stop loss work, many thanks but my suggestion here is enable user to control their loss) 

 

Many thanks

MQL4 Comments
16319
MQL4 Comments 2008.10.22 07:15  

This EA stops trailing the stop and the price actually can get away from it....

 

ES

To add comments, please log in or register