Slowly but surely system

Philosophy:
This system works on the EUR/USD. The ratio between the stoploss and where you take profit are good. I have had no trades that did not take profit yet, some only took 10 points but I usually get 60-90 or more from a trade. These are long trades and you usually only get 1 to 2 trades per day. Better get there slowly than not at all!

Indicators and Parameters:
30 min chart EUR/USD
PSAR
Stochastic Oscillator

Entry signal: on the first dot of the PSAR indicating a new trend - look at stochastic to make sure it is heading the same way otherwise wait for for next trend (this protects from getting stuck in a ranging market)

Exit signal: On the first dot of the PSAR indicating the opposite trend.

Stop loss: the value of the previous PSAR dot. This unfortunately neccesitates you to manually keep moving the stop loss.

Target placement: none - the trade will take out with the stoploss when the trend changes direction

Backtest results - none available (I dont know how to use metaeditor and the strategy tester yet -)

Hi brazern,

Thanks for sharing your simple trading system. Do you wait for a M30 candle close before entry, or do you enter immediately when a psar dot change of direction occurs? Have you researched whether or not your method works on other currency pairs?

Hi Bobkat
I enter immediately when the PSAR dot appears, you can enter with more finesse if you look at the lower timeframes and wait for the right moment, however I want to make a trade robot out of the system so I just enter when the dot appears, you have to keep checking your trade every 30 min.

Hope this helps

Hi Brazern, nice system… sweet n simple… just want to know the parameters of psar and Stochastic Oscillator that u r using, once again thanks…

Dear Psaini1973
I use the standard metatrader parameters:
PSAR - step value = 0.02 maximum value = 0.2
Stochastic Kperiod = 5; Dperriod = 3; slowing =3
Hope this helps

Hey there!
First, a quick word of warning - I am quite new to FX trading and programming with the MQL4 since yesterday(I got some programming background), so what I write may be very stupid:D

Yesterday I decided to learn to program on the MQL language and figured that this system is pretty simple to be my first Expert Advisor project. Here’s the code for it with some comments:


#property copyright "yasen"
#property link      "hh"


double currTradeTrailing;
bool isInTrade=false; //false if there is a trade open, aimed at keeping the number of open trades to 1
extern double riskPercentage = 0.01;


int start()                         
  {
   double prevSAR;
   double TrailingStopPips;
   double positionSize;
   
   prevSAR=iSAR(Symbol(), 0, 0.02, 0.2, 1); //getting previous period SAR
   TrailingStopPips=MathAbs(Open[0]-prevSAR); //calculates stop-loss amount
   positionSize=(AccountBalance()*riskPercentage)/TrailingStopPips/10000; //calculates position size
   
   if (positionSize<1) { positionSize=1; } //ensuring that if the calculated position size in never under 1 (smallest lot)
   
 
   if( OrderSelect(0,SELECT_BY_POS) && OrderCloseTime()==0)
   {
      if(currTradeTrailing>0 && Bid-OrderOpenPrice()>currTradeTrailing && OrderStopLoss()<Bid-currTradeTrailing) // whether to trail the stop-loss
       {
         OrderModify(OrderTicket(),OrderOpenPrice(),Bid-currTradeTrailing,OrderTakeProfit(),0);
       }
    } else {
      isInTrade=false; //if open trades = 0 ---> set false 
    }
   
   
       //the Volume[0] declarations are avoiding volume mismatches (don't know if that's the right way to do it)
       //if the open price of the new bar is below the previous SAR value and the previous bar's close price is below the previous SAR
       //checking if our trailing stop is not smaller than the smallest allowed stop-loss
       //executes only if isInTrade == false, i.e. when there are no other trades open
   if (Volume[0]>=1 && Volume[0]<7 && Open[0]<prevSAR && Close[1]<prevSAR && MarketInfo(Symbol(),MODE_STOPLEVEL)/10000<TrailingStopPips && isInTrade==false)
   {
      if(iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,0)>iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,1) && iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,1)>iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,2) && iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,2)>iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,3) && iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,3)>iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,4) && iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,4)>iStochastic(Symbol(),0,5,3,3,MODE_SMA,0,MODE_MAIN,5)) //checks if there is an upward trend in the Stochastic
      {
            isInTrade=true;
            currTradeTrailing=TrailingStopPips;
            OrderSend(Symbol(),OP_BUY,positionSize,Ask,3,Bid-TrailingStopPips,0,"comment",0,0,Green);
       }
   }

   return;
  }

I tested it on EURUSD 30M and for a period of around 1.5 months it generated a total loss of -$53 out of 31 trades(starting balance $3000, risk 1%). Go try it yourself and
I am pretty sure I’m not doing something right, I’d greatly appreciate some comments on how to improve the code, as you can see I am a total NEWBIE in this :slight_smile: Thanks a lot!

Yasen

Dear Yasen

I appreciate your help with the coding as I dont understand it at all. I will try it and let you know

Many thanks

brazern

When the very first dot appears to indicate a new trend and I enter the trade, where I have to place the stop loss?
According to your rules: “Stop loss: the value of the previous PSAR dot.”
But if is the first dot i can’t have a “previous” dot…

Is it correct to place the SL at the value of the dot that has just appeared?

Anyway nice and easy system

I’ve just backtested the system for a couple of days. You said that you have never lost a trade… How do you manage this?


Dear Lucariga

When you first open the trade you use that candle’s dot as the stoploss, then you keep moving the stoploss as the trade progresses, you also dont have to wait until the stoploss is hit to take the trade out, if you have 40pips and you are happy take it out.

I am interested in back testing results because it will give you information for each possible trade, at the moment I trade from 8am to 5pm in South africa, so there are many possible trades that I dont enter since I trade this system manually. I see that you attached the chart form yesterday,

When I started trading this system I would take my stoploss and double it for take profit markers, then I realised that many trends go into 120 pips profit and some only into 30 and if I use the PSAR dot as stoploss and take my profit that way I might be better off.

As all of us we are trying to find the best way to pay for our ferrari’s, so if you have any ideas on improving the system I would be very happy to hear from you, I have also thought of maybe using a trailing stoploss for my take profit

Please let me know if you have any other ideas

Dear Lucariga

I have just paper backtested the system from 9 march 02:00 taking the downtrend. If we traded every trend back to back until the current trend this is what I found:
18 trades to trade
13 winners and 5 losers
pips profit until now 445.40 (556.4 pips won - 111 pips lost)
Biggest loss 48 pips biggest winner 153.7
This is over 7 trading days thus 63.64 pips per day (not too good, but atleast not a loss)

Please let me know if your findings are the same as mine

Hi Brazern, your avg. profit of 63.64 pips per day in 7 days is a very good profit… well i just made my 1st profit in 1st trade using ur system… i scalped for 20 pips and i got it .

Dear Yasen

Dont worry you are much better than me I dont know how to take the code and make a expert advisor in meta trader, can you please help with directions. I have also backtested this system with paper and found 445 pips profit since 8 march with 13 wins and 5 losing trades (i did not take the stochastic into account with my paper backtesting) biggest win 153 biggest loser 48, maybe we must discard the stochastic and see what happens

Many thanks

Brazern

As i prefer higher timeframes, I’m trying the system on a daily chart.

Can you please let me know if it still works?

Many thanks

Thanks for the information, it is really nice to get the top position in market, but our start should be slow but steady.

online options trading

Well, I used your method and ended up making up a loss… here is where I entered and the chart.

Muneeb, just one loss? Seriously? Longterm is what matters. How long did you test the system?

Yes bruce, I m not in any condition to bare the loss anymore. :frowning:
I had $700(Din’t lose all in this trade) now I am left with $50 (Had $80 Before this trade), I m extra depressed :frowning:

Sorry to hear that. Are we talking about a demo account or real money? If you like we can exchange experiences. I am also relatively new to forex and am learning the whole stuff. Maybe we can learn from each others mistakes :slight_smile:

There were 2 great trades before and after that though which would have brought you a lot of profit