Candle ID 1 close price adjusted +iATR(NULL,0,14,1)*3, is < or > open price got from pink for each trade above the condition, close if right
Posts made by jstap
-
RE: Highest closing price from open priceposted in Questions & Answers
-
RE: Highest closing price from open priceposted in Questions & Answers
do you mean a stop loss 3xATR from the open?
-
RE: Cannot obtain timestamp in the varableposted in Bug Reports
Add a shared link, time is stored as datetime or string in a variable
-
RE: How to use the trailing stoploss function ?posted in Questions & Answers
Place the trailing in a separate tree with at least 2 blocks, 1 can be a pass block. If you add a shared link the problems can be seen.
-
RE: Optimization speed improvementsposted in Questions & Answers
The EA doesn't call all lines at the same time it will call the lines depending on where they are in the code, many like the code on init only ruuns on start-up, on tick will run on every tick, unless you have something to stop it. That being said though there is still a lot that will run every tick.
-
RE: How to EA- turn off Auto Trading disable after profit got hitposted in Questions & Answers
You are better off to just stop, but if you need to control another bots actions you can follow this: https://fxdreema.com/forum/topic/19004/help-custom-mql-code?_=1729240204895
-
RE: How to use the trailing stoploss function ?posted in Questions & Answers
In the standard blocks, there is a trailing block, which has all these settings inside
-
RE: Adding drawdown in balanceposted in Questions & Answers
Add a shared link to show what you have done. I am not a fan of terminating, so I will use a bool variable to stop until the time to restart.
-
RE: Buy if value is over the maximum of last 5 candlesposted in Tutorials by Users
What is it that's not working? alert or delay?
-
RE: Hello, so I have a strategy that I enter a buy stop, buy limit, sell stop, and sell limit, I was wondering if the one order cancels other can make it so when the sell stop fills the sell limit cancels, and when the buy stop fills, the buy limit cancels.posted in Tutorials by Users
If you look in the blocks you will see, on the on trade tab at the top you have these blocks, limit/stop is changeable along with the type buy/sell, set up as many separate trees as you need.
-
RE: Hello, so I have a strategy that I enter a buy stop, buy limit, sell stop, and sell limit, I was wondering if the one order cancels other can make it so when the sell stop fills the sell limit cancels, and when the buy stop fills, the buy limit cancels.posted in Tutorials by Users
on trade tab - purple trade created - delete pending order
-
RE: Hedging Grid Mix Lots @ Boxxocodeposted in Questions & Answers
Pink blocks are like 2 to make 1, for each (dark pink) selects the trade/order to work with, the next (normally light pink) commits (or starts) the action you want to do.
-
RE: Hedging Grid Mix Lots @ Boxxocodeposted in Questions & Answers
It will work on any tab but, it needs an if trade/order block above, on trade is more a way of saying if this happens do this...
-
RE: Hedging Grid Mix Lots @ Boxxocodeposted in Questions & Answers
You will need to set up a test project, something like every bar a random trade is placed (buy or sell), then get the 2 lists, you are probably best to use an array for this (I am not good with arrays) if only a small number standard variables would do, then you could check vales using the ticket number, and commit any actions you want.
-
RE: Hedging Grid Mix Lots @ Boxxocodeposted in Questions & Answers
It is quite complex, first you will need a list of least profitable and profitable running trades, then check the open time, then close the relevant least profitable and a profitable trade.
-
RE: Optimization speed improvementsposted in Questions & Answers
@seb-0 you are right FX is not clean or optimised, to me this is the trade-off to manually coding on MT, I think it has a lot to do with being able to add different lines of code quickly.
-
RE: What is executed first, "On Tick" code or "On Trade" code when trade happens?posted in Questions & Answers
Although that is true the number of the first block in a tree affects which tree works first, meaning if the tree starts with 1 and the following connected blocks are a high number they will activate before the tree that starts with 2 is. I think on every tick these numbers are checked and activated, so as @Bogdaiki has said the tab matters less than the numbers.
