@roar Oh man, sometimes it's really hard to giess what exact issue the users here have
Posts made by trader.philipps
-
RE: About Moving Average levels !!posted in Questions & Answers
-
RE: Get the balance from the history tab ?posted in Questions & Answers
@fabiobioware OrdersHistoryTotal() is the function @roar meant. Without the word function!
-
RE: Storing the price value in a variableposted in Questions & Answers
@fxalberto Use the search function of the forum, that is one of the 3 most requested topics https://fxdreema.com/forum/search?term=atr stopp loss&in=titlesposts&sortBy=relevance&sortDirection=&showAs=posts
-
RE: About Moving Average levels !!posted in Questions & Answers
@roar If it's the level, I think it's a pip or point fraction
-
RE: About Moving Average levels !!posted in Questions & Answers
@roar But than the logic is nearly the same. Just use a constant of 1420 for MA_Distance variable instead of the formular block, right?
-
RE: About Moving Average levels !!posted in Questions & Answers
@gauss said in About Moving Average levels !!:
for example I want to add 355 period and 1420 level. I have to write +1420 or -1420 on adjust right ?
What do you mean by +/- 1420 level? Is it the distance of MA 1420 from current price or close price of last candle?

In case it's the close price of previous candle I'd do it like that.
-
RE: Get the balance from the history tab ?posted in Questions & Answers
@roar Does that matter? OrdersHistoryTotal() can only return what is selected on the history tab.
-
RE: how i can to separate the sell quantity and the buy quantity separately ?posted in Questions & Answers
@moon What do you mean by "all people"? Your EA can only monitor 1 trading account - the one you attached it on a chart. Please try to give more detailed information.
-
RE: How can I work on a candle (H1) & make the expert through one per barposted in Questions & Answers
@khalids222 No. The on Timer tab you only need if you want things to happen independent from any tick. Unfortunately all you do on on Timer tab you won't be able to test in back-test mode. So if there's nothing you want to do outside the market hours, you'd better go with the on Tick tab.
-
RE: How do I have drop down parameterised for optimisationposted in Questions & Answers
@jzfusion Define a constant for the desired field
For MA method use datatype ENUM_MA_METHOD
See valid values (for default value) here: https://www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_methodFor MA price use datatype ENUM_APPLIED_PRICE
See valid values (for default value) here: https://docs.mql4.com/constants/indicatorconstants/prices

Once you define the constants, you can use them each time you use the MA indicacator by rightclick on the correspondant field.

-
RE: EA with object on the chartposted in Questions & Answers
@biztet Block 38 place a real variable there (right click on input field). The redraw shouldn't be necessary.
-
RE: how i can to separate the sell quantity and the buy quantity separately ?posted in Questions & Answers
@moon Just use the Bucket of Trades block and some Modify Variable for instance ..

Adjust it to your needs. AND place a variable where I entered the text SOME_VRAIABLE!!
-
RE: How can I work on a candle (H1) & make the expert through one per barposted in Questions & Answers
@khalids222 Don't know if I understood you right, but this should do what you want (use instead of once per bar or create an extra path for the actions that should be taken every 20 minutes)

-
RE: What Makes a Good Strategy?posted in General Discussions
@titangeorge In one of TRO's videos he shows an exit indicator. Do you know what indicator that is?
-
RE: EA with object on the chartposted in Questions & Answers
@biztet The EA only loads the indicator, if the block is executed. I created the dummy variable as it is required for the Modify Variables block to get exectuted. All I want to achieve is that the EA loads the indicator. You may also use an Custom MQL Code block with an iCustom call, but I think the way I suggested it's easier.
-
RE: how i can to separate the sell quantity and the buy quantity separately ?posted in Questions & Answers
@l-andorrĂ Yes, you are right. I did some testing. If you specify magic number 1000, group 1 will have magic number 1001 - it adds the specified number. Group number 2 will have magic number 1002.
Having this in mind, you could implement the approach I described above,
Things to do:
a) create an int variable

b) on Init tab: set current timeframe in minutes to the int variable

c) Everywhare when usual EA activity allows for setting a group number, specify the int variable.
Here are some samples
The result will be that if you apply the EA to M15 chart, it will use the magic number 1015 (base is set to 1000, group 15 is added by fxdreema's group function). Same EA on H1 chart, EA's magic number would be 1060 and so on.
Hence you can run the same EA on several TF per symbol and it will take care for it's timeframe only.
Next thing would be to get trade information from all magic numbers. In that case you'd specify all the group numbers possible by the timeframe logic .. here an exampke in a For each Trade block

I think that's a cool auto magic number solution. The only pitfall is that you need to specify the group information everywhere possible.
-
RE: Partial profit closing, negative + positive all symbolsposted in Questions & Answers
@tito78 Are you using the EA with multiple symbols on just 1 chart or one chart per each EA instance? Furthermore, how do you determine which position would close wich which? Bigest profit with bigest loss? All in all that's not an easy task to do. Probably you'd need to implement a controling EA to do so that scnans through all symbols and open trades on them.
-
RE: Stop Loss ATR based does not workposted in Questions & Answers
@traderline Did you create the constant cdSLAtrMultiplicator (double) and specify a value other than 0 in the 2nd example?
Furthermore if you use * Mathpow(10,_Digits-1) it calculates Pips. So Custom Price Level is wrong. Use Custom (Pips) instead! -
RE: backtesting ea in mt4posted in Questions & Answers
@kop That's not possible with MT4. If you want simultaneously test more than one symbol you need to use MT5.
-
RE: About Scriptposted in Questions & Answers
@weius EA runs continously and script runs once when applied to a chart.