By shadow you mean wick? Create a project doing the first part, then when working add the second. Use backtest and add a shared link if something's not working.
Posts made by jstap
-
RE: point to exact number of chartposted in Questions & Answers
-
RE: ea review tick data suiteposted in Questions & Answers
Maybe a higher power computer, but simply is just waiting. In MT5 you can pay to use other processers on there network.
-
RE: NEW EA Sposted in Questions & Answers
This is a lot more than what you need but it will show you how: https://fxdreema.com/shared/zIUg2ME8e
-
RE: When MetaTrader is restarted, the EA opens new positions with 0.01 lotposted in Questions & Answers
If trade is running use that, if not save the values in a global variable: https://fxdreema.com/forum/topic/20550/save-variables-constants-if-terminal-closes-crashes
-
RE: [Asking for help] Simple Automatic TP and SL with Modifiable Input using Manual Orderposted in Questions & Answers
Sort of, but what is this modify doing?
-
RE: Distance from last open and only buy/sell above/below last open tradeposted in Questions & Answers
So up to a certain block it works, remove blocks and backtest, then add a block and backtest, then add more and backtest. By doing this you can find a single block that's causing trouble. Ask here if you find something not working.
-
Save variables/constants if terminal closes/crashesposted in Tutorials by Users
Recently I have seen many people asking how to have the EA to remember the values that were used before.
This link will show how to achieve this, this is for constants, but a variable can be stored in the same way, and MT5 is the same:
might not work as needed, see below
https://fxdreema.com/shared/tnu6XI6odI had a thought that in a crash this might not work, so I added variables and set them to amend oninit
-
RE: Distance from last open and only buy/sell above/below last open tradeposted in Questions & Answers
I don't mind helping, but chat GPT is better at explaining code than me, if I add code to my project I do it one section at a time. Everything you have here you don't need code for, and your last project nearly worked. When I started using FX I would create 1 thing, then backtest before adding another. Get 1 thing working, and if not ask why. As you did, so start by removing 1 of your sell blocks and see what happens.
-
RE: Distance from last open and only buy/sell above/below last open tradeposted in Questions & Answers
Add to volume creates a new trade, so you need a sell block or an add block. One creates a parent trade and the other a child trade:

-
RE: how to place buy trade at 09:30 am and 10:30 amposted in Questions & Answers
biztet has a good point, if the 1st is still running you won't get a second, in this case, use 2 no trade blocks with different groups.
-
RE: Pls help me, the remote destop window update so i want the ea run as the previous latest value wasposted in Questions & Answers
Use global variables, if it is just a constant, condition constant != to global variable - set global variable to constant. Here is some workings with it: https://fxdreema.com/shared/7yZetp7Dd
-
RE: how to place buy trade at 09:30 am and 10:30 amposted in Questions & Answers
I am not sure why this does not work, although at times this once per day has not worked for me. Try using a time filter block, and setting the time to a 1-minute range, like start 09:30 and stop 09:31
-
RE: a simple order not workingposted in Questions & Answers
Then you need to set the group in all blocks:

-
RE: candle countposted in Questions & Answers
This does, the -1 is because only 1 cross has happened: https://fxdreema.com/shared/gP74GFdic

-
RE: historical dataposted in Questions & Answers
yes and is the same for sells, because the code in fx assumes + and - are reversed for sells:

-
RE: I NEED TO LOGICposted in Questions & Answers
Put that code in one of the variable boxes (white, orange, gray), put the variable in a comment and watch what happens.
-
RE: historical dataposted in Questions & Answers
In a buy if you make the pips offset a - it will place a limit below the current price.
-
RE: historical dataposted in Questions & Answers
It is quite simple, if the price is at 1000 and you place a buy and sell at 1050 the bay will be a stop and the sell will be a limit, if you place a buy and sell at 9950 the buy will be a limit and the sell will be a stop
-
RE: historical dataposted in Questions & Answers
Not really, on your chart you have a bid and ask price, this is how your broker makes money, buy or sell, and when you open a position you are at a loss. Whether a limit or stop the trade will open in a loss, so a buy will open at the ask even though price is on the bid so you have to cover this distance before you are in profit.