@l-andorrà Have always stayed away from arrays, maybe roar can help, I have noticed this though when you create the variable you likely need this; array[], as for the number you use I am not sure, maybe you would need to set ort change array size before it will wrk.
Posts made by jstap
-
RE: My first MQL5 array doesn't workposted in Questions & Answers
-
RE: record most drawdown that created by EA (MT5)posted in Questions & Answers
@Alex81 As @Pheaktra-Capo has done is good if you want account drawdown, if you only want the drawdown of the EA, you need to get the values from bucket of trades.
-
RE: price move above a moving average then buyposted in Questions & Answers
This is quite simple and standard, in the instructions you will find how to do this, you will likley need more blocks to complete your project, at the beginning you will need this: no trade block->condition block with your required settings->buy/sell block
-
RE: EA to take another trade while one is currently runningposted in Questions & Answers
I think you want something like this, under a no trade block for group 2, for each trade group0, check price is <or > trade + pips offset, conditions for new trade, buy/sell group2
-
RE: Every n'tick blockposted in Questions & Answers
Yes 1h chart = 60min candle so once every 5 hours
-
RE: Run condition once price level is hit.posted in Tutorials by Users
@jansfx Good for you, you don't need the AND, and blocks are for when 2 connections go in the top.
-
RE: how to insert indicator into another indicatorposted in Questions & Answers
You would need a custom indicator.
-
RE: Run condition once price level is hit.posted in Tutorials by Users
When your line is hit with a x< or x> run wherever blocks you want, the logic built into this will prevent unwanted trades.
-
RE: Run condition once price level is hit.posted in Tutorials by Users
You have the right idea, remove the AND block because it's not needed, for now remove your MA condition and, back test till it works (I prefer getting the EA to draw the line so I can move it, at least until it works)
-
RE: Forum updateposted in Questions & Answers
I too think the original should be kept, when other tabs are open you know what to click

-
RE: need help or some insight on a projectposted in Questions & Answers
Many options, you need to make a start to your project and ask how to do something specific.
-
RE: Please helpposted in Questions & Answers
Green blocks, once per tick or seconds, close open and open new, this should do the bacics
-
RE: The condition for opening the opposite positionposted in Questions & Answers
@piotras10000 Separate tree to buy/sell tree:

On on trade tab, only good for if trade closed:

-
RE: How do I set an automatic TP TP more than 2 The SLposted in Questions & Answers
@anon Set TP to %of SL, 200=2XSL.
-
RE: Stopp loss on PSAR...posted in Questions & Answers
@haikel If trades the first trade is old and the second is new.
-
RE: Stopp loss on PSAR...posted in Questions & Answers
@haikel Am a little lost with what you are saying? for above & for below is what I said 2 post's above.
-
RE: Constants / Variables: What are the Variable different types and their function(s)? Examples: 1. Double & 2. I have heard of Boolean and think (posted in Questions & Answers
@jmharrison1971 No worries, if you get stuck just ask, value depends on the type and use, for example SL 10.0 = 10 pips, 1.23679 could be a price value, both can be used for SL just depends on what is required.
