I've set the bot to exit position when stochastic main line crosses under 80. This is the blue line if I'm correct. Candle id is 0 and I have a once per bar filter. But it often sells a couple of candles later. Here's the bot: https://fxdreema.com/shared/YPaCMe6Hc
Posts made by davjack
-
Doesn't sell when it's supposed toposted in Questions & Answers
-
Bot doesn't take leverageposted in Questions & Answers
My buy block is set to risk 25% of the balance (volume size depending on stop loss) but for some reason I only go up/down like half a percent of my balance. What could be wrong?
-
2 Questions on comissionposted in Questions & Answers
- If I type a certain amount of commission for a symbol on MT5, is that the commission for buying and selling or the combined value of that?
- When I say I want to risk a certain amount when taking a trade, is the commission in that calculation? If not, how can I put it in the calculation?
-
RE: How to make robot just use all the available balance on the trade?posted in Questions & Answers
@profitmover That is how much you want to risk. If you put 100% you will lose 100% of your balance if it hits the stop loss.
-
How do I connect my binance account with MT5posted in Questions & Answers
Have created an API on binance. Now, what do I do on MT5?
-
RE: Am new pls help.posted in Questions & Answers
@l-andorrĂ https://fxdreema.com/shared/qe9OS03gb
The leverage issue has been resolved. But I really don't understand why the slippage won't stop the bot from buying it at unreasonably high prices (testing on bitcoin so 1000 pips isn't that much). -
RE: How to buy with varying margin?posted in Questions & Answers
@jstap ok thanks! what should I leave this on then?
(on mt5).
Or is it totally irrelevant? -
How does candle id work on the once per bar filter?posted in Questions & Answers
I'm assuming the once per bar filter checks once right after a new candle has started forming. But I'm unsure what candle has what ID. Is the candle left of the active one candle ID 1? If so, how could a trade be executed on candle 0 if it's only checked after close in which case there's already a new candle?
-
How to buy with varying margin?posted in Questions & Answers
I don't want to have the same amount of leverage every time. I want to trade an engulfing candle strategy where the stop loss is at the low of the engulfing candle and I want to risk 20% on every trade. Sometimes (if the distance between the price and the stop loss is big) there doesn't need to be very much leverage. But if the distance is small there will need to be more leverage taken in order to be risking 20% of my collateral. How do I adjust this? What should I pick here:

And what should I do over on metatrader for this to work -
RE: Am new pls help.posted in Questions & Answers
I'll just post my bot here and you can tell me what I'm doing wrong cause nothing seems to be working the way i want to: 0_1629312897717_bot9.mq5
The idea is: 21,50 and 200 sma are aligned. The stochastics are oversold or have just come up from oversold and there's an engulfing candle. If the stochastics get overbought and start reversing down i close the position. The stop loss is the low of the engulfing candle.The 'once per bar' filter solved my first problem but I have lots of other ones. The bot doesn't wait for the stochastics to cross down. It just sells right after the candle it bought on. And then it stops trading completely. I also don't understand how leverage works here. I set the buy to 25% of equity and the leverage on mt5 is set to 1:1 but for some reason it takes so much that my balance went from 100 to -20000 after the first trade.
And lastly, I only tested it on BTCUSD because it doesn't take a trade on any forex. -
RE: Am new pls help.posted in Questions & Answers
@nguyenjohn But shouldn't putting a low value for slippage fix the problem? I have that and it still doesn't work.
-
RE: Am new pls help.posted in Questions & Answers
@jstap ok thanks. And any possible explanation for my second problem?
-
Am new pls help.posted in Questions & Answers
Lots of stuff I don't understand. I have 2 main problems:
-
I build my blocks on the on timer tab and it's set to 60 seconds but when I test my strategy the trades are executed at random times instead of only executing after a candle close (using the 1M timeframe).
-
My bot buys at super weird prices. Most of my blue arrows are far above the candle or wick. Like this:

-