please help move sl tp to the nearest whole number
-
please help how move sl tp to the nearest whole number
and
make my entry exactly at whole number.thanks.
-
use breakeven piont bar, and what whole did u want number plz explain?
-
whole grid number 10pips 20 pips distance..
if the ea exceute trade, i want the tp is exactly on whole number
and if my custom indicator is executing the entry, i want it to place order exactly on the whole number level.
-
use no trade nearby + once per bar + buy or sell bar set your tp & sl from there. you can separate in 2 section for this
-
not working.. the tp still on the odd number. when ea is executing the position im still dragging the tp into the grid line
https://drive.google.com/file/d/1uSuTy9NIrvqld5Kru3yRYgBaRTpUatX9/view?usp=drive_link
-
there is no odd number setting for this, only u can set a distance of how many pips as u want but it will not go the the odd or even price.
-
Is thr any way to make this happen?
after ea execute the trade the tp will automaticaly move to the nearest grid line?
https://drive.google.com/file/d/1uSuTy9NIrvqld5Kru3yRYgBaRTpUatX9/view?usp=drive_link
-
the ea dont know where did u want to set, only can set BE or trailing stop
-
Okay thanks. Do you find my English difficult to understand?
-
Maths round will change a number to the nearest whole number, here's an example:
double num = 5.67;
int roundedNum = MathRound(num);
Print("Rounded number: ", roundedNum); -
Hi Jstap
if you use MQL5 for VPS services? -
@behrouz1354 This is someone else thread, but VPS work the same as a home PC so if there is a problem it will likely be the VPS server.
-
@jstap can you share a work sample please?
-
Yes but where is your original number coming from?
-
@jstap Grid Number sir... Whole number. this is the original number coming from.
just only move the TP exactly on the grid line/'
and when executing the position, the ea must enter exactly on the grid line.
-
Ok so that code will work but it needs to know the original number to be able to work out the round number, add a shared link with a block set to get the number.
-
are you trading on round numbers?
-
@CAVINCENT yes.. i just want the ea every time open a trade is exactly on round number. or if its possible in the horizontal grid