Script that Opens/Closes charts - Page 2
Page 2 of 732 FirstFirst 12
Results 11 to 15 of 315

Thread: Script that Opens/Closes charts

  1. #11
    Quote Originally Posted by ;
    fascinating... how to you manage the handover?

    I am attempting to obtain a fresh code that will compile before I add in the complexities, but have 2 of these errors

    '(' - function definition unexpected
    it's a single EA there is nothing to handover. Everything is done through iCustom work calls along with iclose,iopen, etc.


    Double click on the mistake and it'll require you to the line that has the issue. It's just guessing at what the issue is, without seeing the code.

  2. #12
    Ok, got it fixed... now I can dig using the iCustom Works

  3. #13
    Okay... have the variables now place with iCustom function

    Now I probably need to write in the indior to check some ratios that also will need to get handed

    I need a ratio:
    the number of occasions it struck line 1 and moved online 0/line 1 and moved to line 2 over y bars at each time period

    once it hits online, it isn't reset until it hits line 0... so if it's line 1, hits line 2 and comes back to line 1, and then on the line 0.... It'd be a 1/1 ratio (line 1 only counted once per reset)

    additionally, I need track the average duration in minutes from line 0 to line 1 and back to line 1... so in case it hangs between line 1 and line 0 subsequently returns without hitting line 1 the clock continues to run

    the ratio I need is (ratio/time)*(pipsdistance*valueperpip)... so if the line 1 to 0 over line 2 to 1 ratio is 3/1 plus it takes 10 minutes then it's 3/10*((how many pips online 0 is line 1 if initial struck how many from line 2 to line 0 if initial struck)*worth of each pip)

    so if each pip is worth $1 and the distance is 10 11 9 pips(3 occasions it hit) from line 1 and 25 pips online 2 then it could be 55 pips * 1.... The ratio score would be .3 *55 or 16.5 for that currency and time period

  4. #14
    Since all of the more complex EAs are ex4 files, I do not get to see how they're performing a few of the things I want to figure with MetaTrader programming...

    This is my setup:
    I've two indiors with 6 buffers every... though one buffer on each is measuring the same line (the centre line) and another 5 are measuring amounts which I would need trades opened at

    there is a pub count feature in the indior... do I desire the identical variable from the EA to enter into the iCustom function? I need to input this at the peak of the start place for the EA, correct?
    =======================================

  5. #15
    There's plenty of EA source code if you have a look in the right places. There are additional metatrader forums.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.