Page 7 of 13 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 123
  45 45 Attachment(s)    

Thread: Parabolic SAR EA

  1. #61
    Member
    Join Date
    Mar 2009
    Location
    Florida, USA
    Posts
    278

    Default

    Quote Originally Posted by wannaberich View Post
    It still says i need the supertrend.ex4 indicator, that is the error i am getting when backtesting
    Ok here you are.
    Attached Files Attached Files
    Think of adversity as that tiny piece of sand that gets trapped in the oyster's shell. Although it's a pain in the oyster's arse, he eventually makes a pearl out of it.

    http://hft.serialcoder.com/ -- Quantitative Market Reversal Levels --- The only indicator you'll ever need.

  2. #62

    Default

    Quote Originally Posted by bigpipn View Post
    Ok here you are.
    If you're talking about the EA that funyoo attached in posts 38 and 40, the EA contains these 4 lines of code:

    Code:
          double ST1a=iCustom(Symbol(),0,"SuperTrend",TrendCCIPeriod,0,i+1);
          double ST2a=iCustom(Symbol(),0,"SuperTrend",TrendCCIPeriod,1,i+1);
          double ST1=iCustom(Symbol(),0,"SuperTrend",TrendCCIPeriod,0,i);
          double ST2=iCustom(Symbol(),0,"SuperTrend",TrendCCIPeriod,1,i);
    The iCustom() function is calling the SuperTrend indicator which must have exactly the same syntax as shown between the " " marks. If your particular SuperTrend indicator goes by any other name, the EA will return an error.

    You should be able to Google it.

  3. #63
    Senior Member
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    631

    Default

    Well i just renamed the indicator working now
    Last edited by wannaberich; 05-03-2009 at 16:17.

  4. #64
    Senior Member
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    631

    Default

    Thanks!

    Quote Originally Posted by bigpipn View Post
    Ok here you are.

  5. #65

    Default

    Quote Originally Posted by wannaberich View Post
    Well i just renamed the indicator working now
    I'm not so sure that simply renaming the indicator is the best thing to do in this situation. Especially so as one of the attached indicators seemed to be a MTF version and was a binary without any source, so it's not as though you actually know what it's doing on the inside.

    I really think you'd be better off finding the Real McCoy to use.

  6. #66

    Arrow

    Quote Originally Posted by BillR View Post
    You need to compile it with Meta Editor...then you'll get an .ex4 file that goes in the /experts directory
    Thanks, but I'm not able to use metaeditor very well.


    Someone can build this "simple" EA for me please?

    Order:
    ---- PSAR(downside) show buy signal --> buy order;
    ---- PSAR(upside) show sell signal --> sell order;
    Exit rules:
    if PSAR changes position. -->close trade (Psar signal will be take into consideration only when candelstick is closed! and not first)

    Thanks

  7. #67
    Junior Member
    Join Date
    Apr 2009
    Posts
    9

    Default

    Hey Ryyna,

    Can i get the OsMA indicator off you

    cheers

  8. #68
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by 823 View Post
    Thanks, but I'm not able to use metaeditor very well.


    Someone can build this "simple" EA for me please?

    Order:
    ---- PSAR(downside) show buy signal --> buy order;
    ---- PSAR(upside) show sell signal --> sell order;
    Exit rules:
    if PSAR changes position. -->close trade (Psar signal will be take into consideration only when candelstick is closed! and not first)

    Thanks
    Hi 823,

    Look on the first post, it is the basic version.

    You have to put the "parabolic sar" mq4 file in the indicators folder.

  9. #69

    Default

    Quote Originally Posted by funyoo View Post
    Hi 823,

    Look on the first post, it is the basic version.

    You have to put the "parabolic sar" mq4 file in the indicators folder.
    Ok thanks.

    You've explained a part of code:
    Welcome!

    extern string SMA = "---------------- SMA";
    extern double SMAPeriod=100; //period of the simple ma
    extern string Lot1 = "---------------- Lot Management";
    extern double Lots = 0.1; //lots
    extern int mm = 0; //money managemet 1=enabled
    extern double Risk = 10; //percentage risk
    extern string Tstb = "---------------- TP SL TS BE";
    extern bool RealStopLoss_Enabled = false; //for SL under 15
    extern int RealStopLoss = 5;
    extern bool RealTakeProfit_Enabled = false; //for TP under 10
    extern int RealTakeProfit = 10;
    extern int StopLoss = 0; // stop loss
    extern int TakeProfit = 0; // take profit
    bool TradeAtCloseBar = false; //orders sent if signal confirmed
    extern bool Reverse = false; //reverse of the system
    extern int TrailingStop = 0; //trailing stop
    extern int TrailingStep = 1; //margin in pips allowed to the price before to enable the trailing stop
    extern int BreakEven = 0; //break even
    extern string Extras = "---------------- Extras";
    extern bool CanAddPos=true; //cumulate positions
    extern int MaxOpenOrders=100; //maximum opened orders
    extern int MagicNumber=0; //magic number
    extern int StopLoss = 0;
    extern int TakeProfit = 0;

    extern int TrailingStop = 0;
    extern int TrailingStep = 0;

    If I use the the StopLoss I don't have to use TrailingStop and TrailingStep Isn't It?

    ex.
    extern int StopLoss = 70;
    extern int TakeProfit = 90;
    extern int TrailingStop = 0;
    extern int TrailingStep = 0;

    or
    extern int StopLoss = 0;
    extern int TakeProfit = 0;
    extern int TrailingStop = 70;
    extern int TrailingStep = 25;

    or
    extern int StopLoss = 0;
    extern int TakeProfit = 100;
    extern int TrailingStop = 70;
    extern int TrailingStep = 25;




    bool TradeAtCloseBar = false; <--- why? What does It means?

    extern int MagicNumber=0; <---can I put each value? (is it true that each Ea must have a magic number different? and also that an EA that is used in more than one cross must have a magic number different? (and also a name file different? eg. EA1 EA2 ecc?)
    double MaxTradeTime = 300; <---minutes?


    Thanks

    p.s. where can i found a simple guide that explain each variabile like above?
    Last edited by 823; 05-04-2009 at 21:25.

  10. #70
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by 823 View Post
    If I use the the StopLoss I don't have to use TrailingStop and TrailingStep Isn't It?
    You can use both.

    Quote Originally Posted by 823 View Post
    bool TradeAtCloseBar = false; <--- why? What does It means?
    It is a useless option, you can ignore it.

    Quote Originally Posted by 823 View Post
    extern int MagicNumber=0; <---can I put each value? (is it true that each Ea must have a magic number different? and also that an EA that is used in more than one cross must have a magic number different? (and also a name file different? eg. EA1 EA2 ecc?)
    It's useful only if you attach the EA to several charts of a same pair.

    Quote Originally Posted by 823 View Post
    double MaxTradeTime = 300; <---minutes?
    Correct.

    Quote Originally Posted by 823 View Post
    p.s. where can i found a simple guide that explain each variabile like above?
    There is no guide, only simple explanation in each code.

Similar Threads

  1. Parabolic SAR EA
    By mehoolsheth in forum Expert advisors backtesting
    Replies: 1
    Last Post: 03-18-2011, 14:16
  2. SAR Parabolic Indicator
    By tattoo-angel in forum Indicators
    Replies: 2
    Last Post: 03-07-2011, 10:53
  3. FT_Scalp Parabolic MMR
    By Chilibowl in forum Expert advisors backtesting
    Replies: 12
    Last Post: 09-13-2010, 23:13
  4. Parabolic question
    By forexpop in forum MQL programming
    Replies: 2
    Last Post: 05-08-2009, 10:14
  5. FT_Scalp Parabolic
    By funyoo in forum Expert advisors live statements
    Replies: 6
    Last Post: 03-03-2009, 22:17

Tags for this Thread

100, 2011, advisor, automatic, average, backtest, backtesting, beginner, breakeven, candle, change, closing, coding, color, copy, custom indicator, demo, eas, elite, eur, eur/usd, eurusd, ex4, expert, expert advisor, experts, forex, free, gbpusd, guide, hedge, home, indicator, indicators, live, macd, magic, magic number, main, manual, manual trading, manual trading system, martingale, metatrader, moving average, mq4, mql, mt4, offer, online, oscillator, osma, parabolic sar, profit, profit factor, profitable, programming, real, renko, repaint, request, robot, rsi, sells, signal, signals, simple, slippage, sma, stop, stoploss, strategy, support, system, test, thank you, time, timefilter, tool, trading, trading system, trailing, trailingstep, trailingstop, trend, usd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •