Youre describing some kind of grid system.. Take a look at those "buy/sell pending orders in grid"
I think those blocks open stop-type orders by default, so you need to put a negative number somewhere (grid size) to set the block putting limit orders.
Posts made by roar
-
RE: Automatically add lot volume when trade goes wrong..similar to martingale but not exactly.posted in Questions & Answers
-
RE: I need helpposted in Questions & Answers
So the signals happen at different price?
You need another variable, and store the price to that variable.
After the looping process, that variable should contain the last signal and you can continue with that -
RE: I need helpposted in Questions & Answers
https://fxdreema.com/shared/bhDHS63Qc
Here's the principle
-
RE: I need helpposted in Questions & Answers
you have to set the ID as some variable, and then use loop to check every id.
loop1: id1 -> check condition ->
loop2: id (1+1) -> check condition ->
loop3: id (1+1+1) -> check condition ....its pretty complicated shet if you're inexperienced
-
RE: Deleting pending orderposted in Questions & Answers
set different group numbers for them, and then use "pending order exist" separately for each number
-> then you can close the other one.or simplier, check if theres less than 2 pending orders -> delete pending orders
-
RE: Once per barposted in Questions & Answers
https://fxdreema.com/shared/EmCNQTnbd
This should help, it counts the bars and condition passes when the count is above 1 -
RE: SL is just a previous candle..posted in Questions & Answers
yes, you would have to store that level to a...
you guessed it....
variable -
RE: how can i have multi order at same time (same hour and minute and second )posted in General Discussions
oh sorry, i used the wrong block...
well, i think you will anyways have some latency towards your broker - i wouldn't expect any ea to work in milliseconds in order to make profit -
RE: How to code that my candle is between support and resistant?posted in Questions & Answers
@timmyhanke
Youre right, that works - but if you want to automate the whole process, drawing the lines in right places will be some problem -
RE: How to code that my candle is between support and resistant?posted in Questions & Answers
This is (also) done with variables, but first you have to set up the process finding those lines, thats the hard part and I cannot help with that

-
RE: Save information of certain candlestick for future references.posted in Questions & Answers
https://fxdreema.com/help/working-with/constants-and-variables
Here's some info about constants and variables.
You can create your variables to the variable list, which is on the left in builder, above the search box.
Just create some system with "modify variables" block, test it around, you will (eventually) see how they work
You can replace nearly any value with a variable or constant, by right-clicking the number
-
RE: Stop Loss and close all orderposted in Questions & Answers
I tested it with live account, works fine for me

There's surely other ways to do this, but thats the best I came up with
-
RE: Save information of certain candlestick for future references.posted in Questions & Answers
All right, so create variables for each piece of info (openprice etc....)
To use only on special bar, you need condition, like if openprice = 0, only then modify it
and then reset it back to 0 every day or whatever fits
-
RE: Stop Loss and close all orderposted in Questions & Answers
https://fxdreema.com/shared/8Ts9mzJ0e
This example doesn't care if the trades are buy or sell, but
it checks if there is any stop-loss, and
when there suddenly isn't any stop-loss anymore (because that position closed)
-> it closes all remaining tradesYou need couple variables with that setup, StopExisted which is used to "remember" that there was a stop-loss, and StopsNow
-
RE: Save information of certain candlestick for future references.posted in Questions & Answers
Use variables to store any information, with the "modify variables" block.
Although you need some logic to reset the data and restrict its process, you probably dont want replace the data on every bar?
