@robertk the custom code block replaces the "Draw line".
"Current market" has nothing to do with charts - the symbols aren't tied to any chart - but you still need that block for getting the proper prices.
Posts made by roar
-
RE: Copy object valuesposted in Questions & Answers
-
RE: Copy object valuesposted in Questions & Answers
@robertk "Chart ID" specifies the target chart. Apparently the fxdreema block doesn't have that parameter, so I'd guess you have to use the actual mql4 function in a custom code block
https://docs.mql4.com/objects/objectcreate -
RE: Copy object valuesposted in Questions & Answers
@robertk still guessing, lol

Making visual things into math is often confusing.You want to convert regular time to candle time (candle ID)?
ibarshift() does that
https://docs.mql4.com/series/ibarshiftWhen you know the candle IDs of the source TL, you can use "trendline price by candle ID" to figure out all the info, can't you?
-
RE: Copy object valuesposted in Questions & Answers
@robertk you dont know if the source TL is plotted to candle highs or lows?
-
RE: Copy object valuesposted in Questions & Answers
@robertk do you mean, how to measure if the TL is down sloping or up sloping?
-
RE: Error "Array out of range in "posted in Questions & Answers
@ontrade you are asking an array element that isnt there.
For example, an array of size 3 can have these elements:
array[0] = 123
array[1] = 347
array[2] = 321If you try to get array[3], the EA gives error because array[3] doesnt exist - the array is out of range.
-
RE: Get better (spread) valuesposted in Questions & Answers
@ontrade yes, its name is "set current market for next blocks" lol
Use the search box in the builder
-
RE: Get better (spread) valuesposted in Questions & Answers
@ontrade yes, just put "set current market for next blocks" before your strategy
-
RE: So many lines of codes!posted in Questions & Answers
@reader1 for a beginner EA builder, fxdreema is surely more "bug-proof" than trying to code from scratch.
EAs will be slower, though, thats for sure. I'm ok with that, as building EAs with fxdreema is much faster than coding. I save time, computer loses time, my time is more expensive lol -
RE: Get better (spread) valuesposted in Questions & Answers
@ontrade you'd have to create an array and then use statistical functions to find the minimums, maximums and averages.. Its quite serious data science, if you go that road.
If you used mt5, you could just look at the history, lol

-
RE: Downloading my indicatorsposted in Questions & Answers
@reader1 fxdreema doesnt actually upload the indicators, the site just reads their properties so that you can refer them in your project. In short, not possible.
-
RE: So many lines of codes!posted in Questions & Answers
@reader1 fxdreema works with code blocks, you can't avoid the "unnecessary" code. If you want simplified project, just google some mql4 tutorial.
-
RE: BUTTON - controlling part of function blocks by press buttonposted in Questions & Answers
@littleleg here's a working example of a button, hope it helps
https://fxdreema.com/shared/4LWM6r3Ac -
RE: How can I find the last highest or lowest close price value of last x bar?posted in Questions & Answers
@sokphal then change the "what to get" to candle ID.
When you know the candle ID, you can get all the candle properties -
RE: ,free version of the builderposted in Questions & Answers
@profit-man free version works for both mt4 and mt5 projects.
Here's how to create a new project, there you will specify between mt4 and mt5

-
RE: could someone please show me where I'm going wrongposted in Questions & Answers
@jstap mathematically, mid point is not high-low.
Correct formula is: low + 0.5*(high - low)
Or simplified: 0.5 * high + 0.5 * low.So, here's the fix:

-
RE: Why my EA always opens 2 pending orders? Please take a look at my eaposted in Questions & Answers
@ankitrader for example,
if trade -> delete pending orders
or
pending orders count != 2 -> delete pending orders -
RE: Why my EA always opens 2 pending orders? Please take a look at my eaposted in Questions & Answers
@ankitrader OCO duplicates your 2 orders. 2*2=4.
You dont need OCO here, just disable it
-
RE: How can I turn DD into a percentage?posted in Questions & Answers
@l-andorrĂ "relative" sounds a lot like percentage. Never tried this though

-
RE: Why my EA always opens 2 pending orders? Please take a look at my eaposted in Questions & Answers
@ankitrader OCO order literally means 2 pending orders.
