Not logged in

Forums

Replies created

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 38 total)
  • in reply to: Integrate a News-Filter with ffcal_net #204866 |
    Conmariin
    Participant
    47 Posts

    I integrate now the Newsfilter in the EA. And it should avoid trading 30 mins before and after HIGH newsimpact only. Medium and Low is okay. Is it okay how I integrated it? What do you think?

     

    Thanks! 🙂

    Attachments:
    You must be logged in to view attached files.
    Conmariin
    Participant
    47 Posts

    Thanks for your help Tomas! 🙂

    I’ll try it with your solution!

    Conmariin
    Participant
    47 Posts

    Pushing it a little bit. 😉

    Can anyone help?

    in reply to: Integrate a News-Filter with ffcal_net #202431
    Conmariin
    Participant
    47 Posts

    Thank you tomas for your excellent help! 🙂

    I think a lot of people find that useful 🙂

    Conmariin
    Participant
    47 Posts

    I found inside the ffcal-indi this sample for integration in an EA:

    // EA Setting variables
    // extern int MinsBeforeNews = 60; // mins before an event to stay out of trading
    // extern int MinsafterNews = 60; // mins after an event to stay out of trading
    //
    // // Global variable at top of file
    // bool NewsTime;
    //
    // // Function to check if it is news time
    // void NewsHandling()
    // {
    // static int PrevMinute = -1;
    //
    // if (Minute() != PrevMinute)
    // {
    // PrevMinute = Minute();
    //
    // int minutesSincePrevEvent =
    // iCustom(NULL, 0, “FFCal”, true, true, false, true, true, 1, 0);
    //
    // int minutesUntilNextEve nt =
    // iCustom(NULL, 0, “FFCal”, true, true, false, true, true, 1, 1);
    //
    // NewsTime = false;
    // if ((minutesUntilNextEvent <= MinsBeforeNews) ||
    // (minutesSincePrevEvent <= MinsAfterNews))
    // {
    // NewsTime = true;
    // }
    // }
    // }//newshandling
    //

     

    Don’t know if this is all I need and of course I can put it manually in the EA code. But I wanted to solve it with EA Wizard.

    in reply to: Conditions within a range of bars #202029
    Conmariin
    Participant
    47 Posts

    Aaah…thank you tomas for your idea! 🙂
    I will try it on my own.

    Thanks for your tremendous support! 🙂 *thumbs up*

    Conmariin
    Participant
    47 Posts

    Thanks tomas. 🙂

     

    • This reply was modified 2 months ago by Conmariin Conmariin.
    Conmariin
    Participant
    47 Posts

    Hi,

    unfortunately I didn’t find out how I can solve this in EAWizard, but I took the code and solved there manually. It was just a 1 Liner in every Pattern condition to set pattern = FALSE. Now it works 🙂

    in reply to: Building an EA for all as tutorial #197259
    Conmariin
    Participant
    47 Posts

    Yes I added the parentheses when I searched the error for this behaviour. And I thought it might be with something is not resettet. But I was unsure. Okay you had the same thought. Now I’m trying to find out how to set the pattern after order entry. Thank you Tomas262! 🙂

    Conmariin
    Participant
    47 Posts

    I have a problem with the condition to buy orders.
    I want that the EA is opening an order when following conditions are met:

    (GoLongSandR=true and(Pattern1=true or Pattern2=true or Pattern3=true)

    But it is opening orders when any of theses Patterns are met. It opens when GoLongSandR=true. It opens when Pattern1=true and Pattern3=true (but not GoLongSandR). It opens when only Pattern2=true…etc. For example sometimes it opens correct with GoLongSandR=true and Pattern1=true.
    I attached a picture of my conditionssetting in EAWizard for Long. Where is the error? Can anyone help?

    This is the code from the EA:

    //--------------------------------------
       // Open Long 
       if(sqIsBarOpen == true) {
          if (((sqGetMarketPosition() == 0) 
          && ((GoLongSandR == true) 
          && ((Pattern1Long == true) 
          || ((Pattern2Long == true) 
          || (Pattern3Long == true))))))
          {
          // Action #1
          sqOpenOrder("NULL", OP_BUY, getOrderSize(MagicLong, OP_BUY ), getOrderPrice(MagicLong), Comment1, MagicLong, "Open Long");
    
          // Action #2
          sqDrawUpArrow(1);
          }
       }
       //--------------------------------------
       // Open Short 
       if(sqIsBarOpen == true) {
          if (((sqGetMarketPosition() == 0) 
          && ((GoShortSandR == true) 
          && ((Pattern1Short == true) 
          || ((Pattern2Short == true) 
          || (Pattern3Short == true))))))
          {
          // Action #1
          sqOpenOrder("NULL", OP_SELL, getOrderSize(MagicShort, OP_SELL ), getOrderPrice(MagicShort), Comment2, MagicShort, "Open Short");
    
          // Action #2
          sqDrawDownArrow(1);
          }
       }
    Attachments:
    You must be logged in to view attached files.
    Conmariin
    Participant
    47 Posts

    Thanks for sharing! 🙂
    Very useful!

    in reply to: Building an EA for all as tutorial #197213
    Conmariin
    Participant
    47 Posts

    There was something missing. Sorry. I corrected it in this version. 🙂

    Attachments:
    You must be logged in to view attached files.
    Conmariin
    Participant
    47 Posts

    Hi 🙂

    I integrated the SandR-Rules+Determining Trend Direction as suggested from Tomas262 (thank you!!) into the EA.
    I also made the ability to chose wich pattern do you like to be activated (from 1 to 3). It seems it works, but I’m not really sure. Please test it. Thanks! 🙂

    With the backtest method only controll points it looks really good. I think we can take this method, because it’s a candle EA and we are opening trades with the next candle. But maybe I’m wrong. Anny suggestions or corrections of faults are welcome! Thank you! 🙂

    • This reply was modified 4 months, 3 weeks ago by Conmariin Conmariin.
    Attachments:
    You must be logged in to view attached files.
    in reply to: Building an EA for all as tutorial #196925
    Conmariin
    Participant
    47 Posts

    Hi, tomas 262 🙂
    Some questions for unstanding your posted EA:
    Low(1) crosses above Low(Period_W1) (1)

    I understand that the lowest low of the actual timeframe must cross above the lowest low of the W1 timeframe. Correct?

    Lowest(TrendLowestPeriodShortterm) (1) > Lowest(TrendLowestPeriodLongterm)(1)

    I don’t understand what this is doing. Lowest is an indicator. And TrendLowestPeriodShortterm and TrendLowestPeriodLongterm are Variables with the Value 250. Could you please describe what this mean?

    Thank you 🙂

    in reply to: Building an EA for all as tutorial #192759
    Conmariin
    Participant
    47 Posts

    Thanks a lot tomas262 🙂
    Now I have something to play with at weekend 😉

Viewing 15 posts - 1 through 15 (of 38 total)