[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 169

 
Al_Key:

That's right ... I've been doing that from the beginning (according to the help). Checked again just in case, no change.

And secondly, put the bar index on which you are looking for a fractal:

    for (int i = 0; i < limit; i++)
    {
       Print ("i = ", i);
       Print ("Upper = ", iFractals (NULL, 0, MODE_UPPER, i));
       Print ("Lower = ", iFractals (NULL, 0, MODE_LOWER, i));
    } 
 
TarasBY:

And secondly, put the index of the bar on which you are looking for the fractal:


Yeah, that's almost a diagnosis for me. (( It's time for a healthy lifestyle. Thank you.
 
Al_Key:

Yes, it's almost a diagnosis for me. (( It's time for a healthy lifestyle. Thank you.
Until you learn how to catch such bugs intuitively - it's useless to write more than 3 lines... ;)
 
Roger:

if(Digits==3||Digits==5) TakeProfit *=10;

As an example, I need a script at the beginning of the EA, which will determine which quote DT uses, and depending on 4 or 5 digit quotes, the whole program will work with the selected quote.
 
TarasBY:
Until you learn to catch bugs like this intuitively, it's useless to write more than 3 lines... ;)
Yeah, well, I've written a lot more than 3 lines of uselessness for a long time now, that's why I'm in favour of a healthy lifestyle from now on :)))
 
pasha5282:

As an example, I need a script at the beginning of the Expert Advisor that will determine which quotes are used by DT, and depending on 4 or 5 digit quotes, the whole program will work with the selected quote.

As explained above in details.Predefined variables: DigitsThe number of digits after the decimal point in the price of the current instrument. If EURUSD has 5 digits after the decimal point, Digitswill be 5. If EURUSD has 4 digits after the decimal point, Digits will be 4. If USDJPY has 3 decimal dig its, Digits will be 3. If USDJPY has 2 decimal digits, Digits will be 2. You don't need any script, if you define it in init(). I don't think I've explained it any further...






 
pasha5282:

As an example, I need a script at the beginning of the EA which will determine which quotes DT uses, and depending on the 4 or 5 digit quotes, the whole program will then work with the selected quote.

A lot easier:

int digits = MarketInfo(Symbol(),MODE_DIGITS);

You can check with print or comment and see 2, 3, 4 or 5!

 

Good day.

I have zero programming skills in Meta4! So I found this EA https://www.mql5.com/ru/code/10833 and changed

-Input parameters:

MinLot 0.1

MaxLot 1

TakeProfit 100

Grid 50

A 0.6

Stop false

Delete false

Here is the Expert Advisor for 7 months at 0.1 lot http://i52.fastpic.ru/big/2013/0221/...3a39bd5313.gif

Can someone flip it?

 
erik451:

Good afternoon.

I have zero knowledge of Meta4 programming! So, I found this Expert Advisor https://www.mql5.com/ru/code/10833 and changed

-Input parameters to:

MinLot 0.1

MaxLot 1

TakeProfit 100

Grid 50

A 0.6

Stop false

Delete false

Here is the EA for 7 months at 0.1 lot https://www.mql4.com/go?http://i52.fastpic.ru/big/2013/0221/13/e41106236b5b1b498724af3a39bd5313.gif

Can someone flip it?

Why?

The result will not change.

 
PapaYozh:

Why?

The result will not change.


I tried flipping in real time with 2 computers and it worked, why can't this process be automated?


When an EA has a Buy price of +50-80 pips, it has a Sell price of -60+75 pips and the same goes for Sell!

Reason: