You can do it like this: https://fxdreema.com/shared/UXr0s94Xb
Posts made by jstap
-
RE: Profit / loss Target by Time Filterposted in Questions & Answers
This is why I use once per daily bar, because this waits for the 1st tick of the day.
-
RE: Closing problem with hedging positionsposted in Questions & Answers
You do not need an if position block because there must be running trades to have a value, try using >= instead of == in case logic misses the exact microseconds prices match
-
RE: RSIposted in Questions & Answers
On fx you would need a custom indicator, using both indicators is easy, but putting both in the indicator window is not.
-
RE: Which block to use to place Stop Lossposted in Questions & Answers
Place it in the buy/sell block, unless you want to wait for something to happen.
-
RE: close the biggest negative position every dayposted in Questions & Answers
Don't start your answer with you don't think I understand, everything I do is to help people learn, but if I create everything for people, they won't learn, and I will constantly be creating block setups for people.
The principle is the same, but in the loop get the profit, use buys & sells and <

-
RE: 'No trade nearby' Bug in Martingale Grid Sequenceposted in Bug Reports
That seems odd, contact admin and see if he knows why, if it constantly went down I would say it has to do with the size of the account, but as it then rases, it won't be. Unless some trades close before it raises, but even then it breaks the martingale sequence.
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
If you would like help make a start, add the shared link, then say what's not working. To put it simply, there are blue blocks that check unrealised profit, -x.xx with a buy block under, although you will likely need a no trade block for the hedge group to limit unnecessary trades.
-
RE: 'No trade nearby' Bug in Martingale Grid Sequenceposted in Bug Reports
I never have got on well with this block, what does it do when it fails?
-
RE: close the biggest negative position every dayposted in Questions & Answers
You are not using a loop, I meant more like this:

-
RE: priceposted in Questions & Answers
If you want the previous 9 candles value from midnight? Then set your timer from 00:00 to 00:01, because how it is it will update the values every 30 minutes.

-
RE: Custom Code / Custom Block /HTTPposted in Questions & Answers
You will have to learn arrays, I am not great at them either. Create an array then fill it
-
RE: close the biggest negative position every dayposted in Questions & Answers
Make your test project, then add a shared link, and I'll have a look at what's happening.
-
RE: HELLO BEEN HAVING A PROBLEM WITH THE BUY PENDING ON MT5posted in Bug Reports
Check with admin, they are almost the same, but not exactly.
-
RE: HAVING PROBLEM WITH CHECK DISTANCE MT5posted in Bug Reports
Technically nothing is wrong, possibly when the cross happens distance is not right, test with 1 condition at a time, and then when each 1 is working, you will know if adding them together is the problem or 1 of your conditions.
-
RE: close the biggest negative position every dayposted in Questions & Answers
Use a loop for each position check if size is bigger than the biggest recorded in your variable, if so record the trade data in this variable, and then when ready close this trade
-
RE: HELLO BEEN HAVING A PROBLEM WITH THE BUY PENDING ON MT5posted in Bug Reports
Maybe, I only work with MT4
-
RE: Custom Code / Custom Block /HTTPposted in Questions & Answers
In FX things work a little differently, although you can use code, much is already inside so you cannot add again, on init is all done on the on init tab, arrays although they work need to be set up separately, execute would be completed without execute() when everything. You will need has been populated
input string BASE_URL = "https://";
input string Syntax_Info = "ENTER Syntax"; THESE LINES WOULD NEED DELETING, AND STRING VARIABLES CREATING WITH THESE NAMESint OnInit(){
execute();
return(INIT_SUCCEEDED); THESE LINES NEED DELETING
}int execute(){
char post[], result[];
string headers = "Content-Type: text/plain\r\n";
StringToCharArray(Syntax_Info,post,0,StringLen(Syntax_Info));
int res = WebRequest("POST",BASE_URL,headers,5000,post,result,headers); THIS WOULD NEED TO BE DELETED AND RECREATED AS A SEPARATE ARRAYreturn res; DELETE THIS
}
