https://fxdreema.com/help/working-with/constants-and-variables
look for Project variables
Posts made by miro1360
-
RE: Do not open position on the last day of the month.posted in Questions & Answers
you can create it using custom code or custom block - this I advice you only for trustly strategies, you can invest here a lot of time because it is hand-typing code ...
custom code you can create directly in Custom code block ...
or custom block you can create in studio where you can also create own functions, but it is more complicated ... -
RE: how to make hedge trades?posted in Questions & Answers
this what you are trying is grid system not hedge
... for grid try to use No trade nearby ... or pips away but with for each trade ...
and dont connect Buy block after Buy block ... -
RE: Error Parabolic "array out of range"posted in Questions & Answers
do you have whole history in tester? try it with another metatrader (firstly download history, restart metatrader and try it again)
-
RE: "Buy/Sell Pending Order" blockposted in Questions & Answers
@valleyfx said in "Buy/Sell Pending Order" block:
@fxDreema i didn't understood on the builder how to make an "buy stop" and a "buy limit" it counts just like "buy pending order", can you explain it please? i didn't found in other publications
@fxDreema said in "Buy/Sell Pending Order" block:
https://apiaryfund.com/sites/default/files/buy-limit_4.jpg
http://www.forexfactory.com/attachment.php?attachmentid=1716961&d=1437471384use negative or positive offset value, just try it with tester and learn more about what are stops and limits in general, use youtube or google

-
RE: sell stop and buy stop ?posted in Questions & Answers
many ways how to do it ...
the easiest is way is using OCO mode: Yes in pending blocks:
https://fxdreema.com/shared/0gbtxAEqdor other ways with OCO false +blocks in on Trade section:
notice, here I used "false output connections for possitive condition question" - some people dont like this way
you can remake it for yourself ...
limits example:
https://fxdreema.com/shared/GDF9SbnIdstops example (with reduced blocks and negative condition question with true output):
https://fxdreema.com/shared/pVRJ6lNMcdont forget, for last two examples are both section used - on Tick and on Trade:

fxDreema allows you many ways how you can solve your question, just try+test+try+test+...and never give up

-
RE: sell stop and buy stop ?posted in Questions & Answers
after sell stop place block delete pending orders (buy)

-
RE: Help with Trading Conditions in Renkoposted in Questions & Answers
here are many ways how to do this ... take inspiration from this cross example:
https://fxdreema.com/demo/mt4-psar-reversalsor do crossover using own blocks (compare candle close with psar value), and set candle IDs for 1 candle into history (because sometimes I noticed reapainting on previous candle on psar)
EA logic can be:
- once per bar: controling bigger renko cross, if cross happens - save it state into flag (if buy condition - flag is 1, if sell condition - flag is -1)
- if flag exist, check flag state and check lower renko, if all is true, buy or sell and flag set to 0
...
because of using once per bar, EA is waiting for next bigger renko cross where flag will be changed to 1 or -1 (depending on trade direction)
-
RE: unix timestamp to "hh:mm" timestampposted in Questions & Answers
ok, as I expected, problem is in metatrader (not in fxdreema) ... because if you will get time coordinates from object, it is not working, price is working but time is not ...
this is test EA
https://fxdreema.com/shared/vCdUDU66dand result is this:

you can see, price coordinates are taken correctly, but time/date is not -- with original MQL functions ...
or maybe my way to test it was not ok
who know ...
(the same happen for trendline) -
RE: unix timestamp to "hh:mm" timestampposted in Questions & Answers
@beatking wait little while maybe here is bug ...
-
RE: fifo violationsposted in Questions & Answers
https://fxdreema.com/forum/topic/4246/example-for-each-trade
https://fxdreema.com/shared/FRLmvb2Bb
using Pink blocks you can do it ... -
RE: unix timestamp to "hh:mm" timestampposted in Questions & Answers
but where you need this? only in Comment block?
https://fxdreema.com/shared/6N55Sodxd -
RE: Question about 'Adjust'posted in Questions & Answers
I dont see whole name for your marked constant, lets say name is Pips_plus_for_trail_Ca
you have at least 3 possibilities how to do ittype into adjust field:
-Pips_plus_for_trail_Ca
and your constant must be typed as 0.0008 (8 pips price fraction for EURUSD, or 0.08 for GBPJPY)or you can make it from mql functions (SymbolInfoDouble(....)) but that is not so elegant

...
admin was thinking about this solution, but I have not tried it yet if it is done:
https://fxdreema.com/forum/topic/4286/10pips/6
so in adjust try this:
-Pips_plus_for_trail_Ca pips
or
-(Pips_plus_for_trail_Ca) pipsor maybe this?
but this is probably not working yet (I have not tried) :
-Pips_plus_for_trail_Ca@pipsif none of them is working for you, try this not recommended solution with function from fxdreema (admin dont recomended this because it must not working 4-ever, after fxdreema update when is here name change of this function it stop working (only project compiling, not previously created EA) and you need rename it if you made some changes in project
) ...
in adjust type:
-(toDigits(Pips_plus_for_trail_Ca,SYMBOL))
or
-(toDigits(Pips_plus_for_trail_Ca,symbol))
or
-(toDigits(Pips_plus_for_trail_Ca,Symbol()))
or
-(toDigits(Pips_plus_for_trail_Ca))...
-
RE: Tutorial 08 - Candle Formationsposted in Tutorials by Users
the same for mql4 not now but you can do it yourself in mql4 because blocks are the same and custom code is in this type also the same (here is only working with variables and few operands) ...
-
RE: RSI XOver Issueposted in Questions & Answers
maybe it is issued with "Candle ID" because current candle have ID 0 (and is not closed and can close far away from its open price)
... try to give in condition block (in More settings) Candle ID to 1 ... -
RE: plz help me make eaposted in Questions & Answers
run it with tester and observe with few ways, like value on candle1 (first closed) and when this value move on next candle, check if the value is same or was changed (change can happen on few candles later) ... some indicators are made as repaint (zigzag, triangular MA) based on first idea

