KAS37 Trading System

That’s much better thanks. One more thing…they always want more :wink: … could you make the text font a size or more bigger for the “GBPAT1” etc , then it’d be perfect! My eyes aint’ what they used to be :smiley:

Thanks for this system.

I have a few questions for you:

  • did you write an EA for this system?
  • if yes did you back test it ? What are your results?
  • did you forward test it? I am sure yes, With what kind of results?
  • do you have a trading log to show us?

I like your system and would like to know more about its performance. Thanks for sharing with us…

Cheers

Bellx,

  • I dont know how to write EA, unless someone can teach me where is the place for me to learn to write EA, I am glad to do it
  • I did not back test, only forward test, the result has been posted in forex factory under same thread title, because I have problem posting chart over there, that’s why I transfer here.
  • Referring to forex factory again, I trade live and post the result live over there, so far the performance like I said, consistent profit around 20-40pip per day.
  • I dont post log anymore, coz some people are just scared to see the ‘real log’ - i have had case where people questioned something like ‘you have had 24 winners without a single loss ? you must be talking BS… something like that’ - so no more posting logs.
  • Anyhow, since I have already transfer the thread here, I will post my result everyday here, If I got the time to trade and post.

Hope it helps.

Cheers.
Caireono

Hi thanks for the reply,

I will take a look at your ForexFactory thread. I wrote an Expert in MT4 this morning based on your system. It is a first version (working fine) it is not perfect and needs improvment. Please improve it and post it for the benefit of the babypips community, and if you had any questions about it please ask!

I am posting it here:

//±--------------------------------------------------------------------------------------------------+
//| KAS 37.mq4 |
//| Copyright � 2008, PA |
//|Setup : |
//| 1) Bollinger Band (BB), 20,0,2 - Default |
//| 2) RSI 3 and RSI 7 |
//| 3) Stochastic 7,3,3 |
//| 4) Simple Moving Average, SMA 3 and SMA7 |
//| 5) Pair - GBPJPY, 5 Min Chart. (the rest of the other pair, |
//| I wouldn’t guarantee of success) |
//|ENTRY RULES: |
//| 1) BUY ENTRY |
//| a) Stoch cross up from below 20 (or less than 30) |
//| b) RSI 3 and RSI 7 cross up from below 30. |
//| c) SMA 3 and SMA 7, cross up between Lower BB and Mid BB. |
//| 2) SELL ENTRY |
//| a) Stoch cross down from above 80 (or greater than 70) |
//| b) RSI 3 and RSI 7 cross down from above 70. |
//| c) SMA 3 and SMA 7, cross down between Upper BB and Mid BB |
//| (FOR SELL ENTRY, THIS does not matter , ie the cross between |
//| the Upper BB and Mid BB- added 090208, 100208) |
//|STOP LOSS: |
//| A Rigid 30 pip from ENTRY. |
//|PROFIT TAKING: |
//| 1) Once Profit > 10 pip, set SL to 10 pip immediately, Let it Runs/Hits. |
//| 2) Once Profit > 20 pip, set SL to 20 pip immediately, Let it Runs/Hits. |
//| 3) Once Profit > 30 pip, set SL to 30 pip immediately, Let it Runs/Hits. |
//| 4) Once Profit > 40 pip, set SL to 40 pip immediately, Let it Runs/Hits. |
//| |
//|NUANCES : (Note : At the time of this writing, this process of identifying Patterns still |
//|going on from time to time - the no of Good or Buy patterns may increase from time to time, |
//|so does the nuances) |
//| 1) To maximize profit and minimize loss, I have created, GOOD BUY/SELL PATTERNS AND BAD |
//| BUY/SELL PATTERNS. |
//| 2) There are 3 GOOD BUY PATTERNS (called GBPAT1, GBPAT2, GBPAT3) |
//| 3) There are 3 GOOD SELL PATTERNS (called GSPAT1, GSPAT2, GSPAT3) |
//| 4) There are 3 BAD BUY PATTERNS (called BBPAT1, BBPAT2, BBPAT3) |
//| 5) There are 3 BAD SELL PATTERNS (called BSPAT1, BSPAT2, BSPAT3) |
//|SO, YOUR ENTRY shall not based on only the General BUY/SELL entry Rules, |
//|IT shall be based on the GBPAT or GSPAT. |
//|---------------------------------------------------------------------------------------------------+

#property copyright “Copyright � 2008, PA”
#define MAGICMA 20050613

extern double stoploss = 30;
// extern takeprofit= no takeprofit as we are using a trailing stop
extern double Lots = 1;
extern double Risk = 3;

//±-----------------------------------------------------------------+
//| Calculate open positions |
//±-----------------------------------------------------------------+
int CalculateCurrentOrders(string symbol) {
int buys=0,sells=0;
for(int i=0;i<OrdersTotal();i++){
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA){
if(OrderType()==OP_BUY) buys++;
if(OrderType()==OP_SELL) sells++;
}
}
if(buys>0) return(buys);
else return(-sells);
}
//±-----------------------------------------------------------------+
//| Calculate optimal lot size |
//±-----------------------------------------------------------------+
double LotsOptimized()
{
double lot=Lots;
lot=NormalizeDouble(((Risk/100) * AccountBalance()) / (stoploss10),1);
if(lot<0.1) lot=0.1;
return(lot);
}
//±-----------------------------------------------------------------+
//| Check for open order conditions |
//±-----------------------------------------------------------------+
void CheckForOpen(){
//---- BUY CONDITIONS:
if(iStochastic(NULL,0,7,3,3,MODE_SMA,0,MODE_MAIN,1) > 20){
if(iRSI(NULL,0,3,PRICE_CLOSE,1)>30 && iRSI(NULL,0,7,PRICE_CLOSE,1)>30){
if(iMA(NULL,0,3,0,MODE_SMA,PRICE_CLOSE,1) > iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_LOWER,1)
&& iMA(NULL,0,3,0,MODE_SMA,PRICE_CLOSE,1) < iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_MAIN,1)){
if(iMA(NULL,0,7,0,MODE_SMA,PRICE_CLOSE,1) > iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_LOWER,1)
&& iMA(NULL,0,7,0,MODE_SMA,PRICE_CLOSE,1) < iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_MAIN,1)){
OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,Ask-stoploss
Point,NULL,"",MAGICMA,0,Blue);
} } } }
//---- SELL CONDITIONS:
if(iStochastic(NULL,0,7,3,3,MODE_SMA,0,MODE_MAIN,1) < 80){
if(iRSI(NULL,0,3,PRICE_CLOSE,1)<70 && iRSI(NULL,0,7,PRICE_CLOSE,1)<70){
if(iMA(NULL,0,3,0,MODE_SMA,PRICE_CLOSE,1) < iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_UPPER,1)
&& iMA(NULL,0,3,0,MODE_SMA,PRICE_CLOSE,1) > iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_MAIN,1)){
if(iMA(NULL,0,7,0,MODE_SMA,PRICE_CLOSE,1) < iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_UPPER,1)
&& iMA(NULL,0,7,0,MODE_SMA,PRICE_CLOSE,1) > iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_MAIN,1)){
OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,Bid+stoploss*Point,NULL,"",MAGICMA,0,Red);
} } } }
}
//±-----------------------------------------------------------------+
//| Start function |
//±-----------------------------------------------------------------+
void start(){
//---- check for history and trading
if(Bars<100 || IsTradeAllowed()==false) return;
//---- calculate open orders by current symbol
if(CalculateCurrentOrders(Symbol())==0){
CheckForOpen();
}

for(int cnt=0;cnt<OrdersTotal();cnt++){
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_BUY && OrderSymbol()==Symbol()){
if(Bid-OrderOpenPrice()>10 && Bid-OrderOpenPrice()<20 && OrderStopLoss()!=10Point+OrderOpenPrice()){
OrderModify(OrderTicket(),OrderOpenPrice(),10
Point+OrderOpenPrice(),OrderTakeProfit(),0,Green);
return(0);
}
if(Bid-OrderOpenPrice()>20 && Bid-OrderOpenPrice()<30 && OrderStopLoss()!=20Point+OrderOpenPrice()){
OrderModify(OrderTicket(),OrderOpenPrice(),20
Point+OrderOpenPrice(),OrderTakeProfit(),0,Green);
return(0);
}
if(Bid-OrderOpenPrice()>30 && Bid-OrderOpenPrice()<40 && OrderStopLoss()!=30Point+OrderOpenPrice()){
OrderModify(OrderTicket(),OrderOpenPrice(),30
Point+OrderOpenPrice(),OrderTakeProfit(),0,Green);
return(0);
}
if(Bid-OrderOpenPrice()>40 && OrderStopLoss()!=40Point+OrderOpenPrice()){
OrderModify(OrderTicket(),OrderOpenPrice(),40
Point+OrderOpenPrice(),OrderTakeProfit(),0,Green);
return(0);
}
}
else if(OrderType()==OP_SELL && OrderSymbol()==Symbol()){
if(OrderOpenPrice()-Ask>10 && OrderOpenPrice()-Ask<20 && OrderStopLoss()!=OrderOpenPrice()-10Point){
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-10
Point,OrderTakeProfit(),0,Green);
return(0);
}
if(OrderOpenPrice()-Ask>20 && OrderOpenPrice()-Ask<30 && OrderStopLoss()!=OrderOpenPrice()-20Point){
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-20
Point,OrderTakeProfit(),0,Green);
return(0);
}
if(OrderOpenPrice()-Ask>30 && OrderOpenPrice()-Ask<40 && OrderStopLoss()!=OrderOpenPrice()-30Point){
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-30
Point,OrderTakeProfit(),0,Green);
return(0);
}
if(OrderOpenPrice()-Ask>40 && OrderStopLoss()!=OrderOpenPrice()-40Point){
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-40
Point,OrderTakeProfit(),0,Green);
return(0);
}
}
}
}
//±-----------------------------------------------------------------+

Thanks Bellx1. I will google the web to find out how can I transfer what you do to make it into EA, and how to use it also.

Let’s continue.

GBPAT3 (Good Buy Pattern #3) Attribute :
(among the most difficult pattern to define)

  1. Mid BB pointing upward.
  2. Stoch crossing up below 30 line (remember above 30 line is for GBPAT2)
  3. RSI 3/7 crossing up.
  4. SMA 3/7 crossing up above, at, or slightly below the Mid BB (this is very critical)
  5. ENTER BUY ENTRY at the crossing of SMA 3/7.




BBPAT3 (Bad Buy Pattern #3) Attribute :

  1. Mid BB pointing upward.
  2. Stoch crossing up below 30 line
  3. RSI 3/7 crossing up.
  4. SMA 3/7 crossing up BELOW the Mid BB (around the middle between Mid BB and Lower BB - this is very critical)
  5. DO NOT put BUY ENTRY at the crossing of SMA 3/7.




BBPAT2 (Bad Buy Pattern #2) Attribute :
(there is a very fine difference with GBPAT2 - be careful)

  1. Middle BB pointing upward (sometime slightly only)
  2. Normally after BSPAT1.
  3. Stoch cross up above 30 line.
  4. RSI 3/7 cross up.
  5. SMA 3/7 cross up, or merely kiss, between the Middle BB and the Upper BB.
  6. Price does not break above the last swing high, and normally you will see that the Stoch will cross down again 1-2 bars later.
  7. DO NOT put BUY ENTRY when the last of three crosses happen.




BSPAT2 (Bad Sell Pattern #2) Attribute:
(Very critical or fine difference with GSPAT1 - be careful)

  1. Middle BB pointing downward.
  2. Normally after BBPAT1.
  3. RSI 3/7 cross down below 50 line.
  4. Stoch cross down happens above, around, or slightly below 50 line.
  5. SMA 3/7 cross down, or ‘kiss’ and it happens between the Middle BB and Lower BB.
  6. DO NOT put SELL ENTRY.




BSPAT3 (Bad Sell Pattern #3) Attribute :
(the hardest to define, fine difference with GSPAT3)

  1. Middle BB is pointing upward.
  2. Stoch and RSI 3/7 have crossed down.
  3. Stoch crossing down above 70 line (for GSPAT3, the Stoch cross can happen below).
  4. SMA 3/7 crossing down between the Middle BB and the Upper BB.
  5. The price after 1-2 bars does not cross below Mid BB.
  6. BAD SELL ENTRY at the last of the cross among the 3, normally the SMA 3/7.

Ok, that’s it. Phew… (it takes a lot of hardwork - hopefully everybody is clear).

ONE IMPORTANT THING - DO NOT TRY TO IDENTIFY PATTERNs DURING MID BB LINE IS FLAT. IT’S A NO NO - normally price is ranging.




Hi,
I am having a little trouble distinguishing the Good & Bad of Pattern 2. Your attributes for both look identical as follows and the last statement for each contradicts each other:

GBPAT2 (Good Buy Pattern #2) Attribute :

  1. Middle BB pointing upward.
  2. Normally after BSPAT1.
  3. Stoch cross up above 30 line (the above the better, above 70 line more stronger signal)
  4. RSI 3/7 cross up.
  5. SMA 3/7 cross up, or merely kiss, between the Middle BB and the Upper BB.
  6. GOOD BUY ENTRY when the last of three crosses happen.

BBPAT2 (Bad Buy Pattern #2) Attribute :

  1. Middle BB pointing upward (sometime slightly only)
  2. Normally after BSPAT1.
  3. Stoch cross up above 30 line (the above the better, above 70 line more stronger signal)
  4. RSI 3/7 cross up.
  5. SMA 3/7 cross up, or merely kiss, between the Middle BB and the Upper BB.
  6. DO NOT put BUY ENTRY when the last of three crosses happen.

Please emphasize the part that is different.

Thanks :slight_smile:

Hi Sweet Pip,

Big thank you for noting that, this is the problem when you just copy and paste and forgot to edit -

I have edited the post - please refer to it again.

Again, thank you - and hope everyone reading is clear.

Caireono.

Hi again,
Looking forward to trying it out! I have a couple of questions…will probably have more, but just a couple for now :slight_smile:

I notice during the formation of a candle, the stoch, rsi, ma’s etc value change, so for example, in the GBP1, the stoch may move above 70 and then retraces back down again before it closes. So, assuming all other criteria was met, would you wait until the current candle closes and starts the next candle to check the if the value of the stoch stayed above 70 to enter?, or enter as soon as it goes above 70 during the current candle even if it retraces a bit before maybe continuing up in the next candle?

2nd question, at the bottom of your 1st post, there some “Important Notes”…do these still apply in relation to your updates in post #2?

Thanks again :slight_smile:

Sweet Pip,

  1. Answer - enter as soon as it goes above 70 during the current candle even if it retraces a bit before maybe continuing up in the next candle?

  2. Answer - no more, only refer to post #2.

  3. I just woke up, looks like GBPAT1 is formed, and looks like still got the momentum to go up. I will wait for GSPAT2.

Ok, my first trade today that last less than 1 min.

GSPAT2 is formed, took entry at 198.83, close for 20 pip profit at 198.63.


Ok, so far I REALLY like this system :slight_smile: :slight_smile:

First pattern I saw looked like the GBPAT1 so I took it. I was a little slow in getting the s/l & t/p part in my head so just put in 30 for each and it hit the t/p for 31 pips within 15 mins no problem. Now I see I should have moved my s/l to b/e and put a trailing stop at 20 as it went higher :eek:

Regardless, it met my “per trade” money managment strategy so am very happy.

Now I’ll be looking for my next trades to be a repeat performance over the next couple of weeks to give this a true evaluation…but otherwise it made my day today :smiley:


Good to know that someone is making money, yes, throughout time u will notice that GBPAT1 moves slower, but surely.

Good job.

Current chart, expecting GSPAT3.


Enter SELL at GSPAT3 just now, close with 10pip profit.


Like your last post graphs show where, I entered long on the BBPAT2 thinking at the time it was a GBPAT2. :eek:

Did it fail because those bars where not above the last swing high of the BSPAT1?

If so, I think I’ll add “current price is higher than last swing high” to the entry attributes of the GBPAT2 as well because I wasn’t sure…lesson learned I think…pls confirm, thanks! :slight_smile:

You are correct, I have edited the original description of BBPAT2 when you commented yesterday.

Here it is the current pattern.