I can do it in principle, the hardest thing for me is to write the price to a file and calculate the time
Why write it to a file, you can do it like this?
It's not hard either, the moment you start counting
int iStart = 0;
int iSeconds=20;
//---if(наступило событие)
iStart=TimeCurrent(); // запомнили время в секундах//---if((iStart+iSeconds)<=TimeCurrent()) // если время пришло
{
выполняем действие
}
First you have to make a table and define what should be there and where, and then write functions
int ticket;
double pricefix;
// if an object was clickedif(id==CHARTEVENT_OBJECT_CLICK)
{
// if buy button was pressedif(sparam=="BuyButton")
{
//price fixing
pricefix = Ask;
}
}
if(Ask < pricefix - 4*_Point)
{
ticket = OrderSend(_Symbol,OP_BUY,0.01,Ask,3,0,Ask+300*_Point,NULL,0,0,Green);
}
}
I tried to fix the price by pressing the button through a variable, hoping that when the price reaches this variable, the order will be opened, but no miracle happened. Help.
Although the function is theoretically correct, if I put
if(Ask == pricefix)
then the order opens immediately, but I need it to be 4 points lower after remembering
I was sort of trying to do a price fix via a variable, hoping that when the price equals that variable, an order will open, but no miracle happened. Help.
Although the function is correct in theory, if I set
The order opens immediately but I need it to be 4 pips lower after remembering
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I can do it in principle, the hardest thing for me is to write the price to a file and calculate the time
Why write it to a file, you can do it like this?
It's not hard either, the moment you start counting
We will deal with issues as they arise...
First you have to make a table and define what should be there and where, and then write functions
I tried to fix the price by pressing the button through a variable, hoping that when the price reaches this variable, the order will be opened, but no miracle happened. Help.
Although the function is theoretically correct, if I put
if(Ask == pricefix)then the order opens immediately, but I need it to be 4 points lower after rememberingI was sort of trying to do a price fix via a variable, hoping that when the price equals that variable, an order will open, but no miracle happened. Help.
Although the function is correct in theory, if I set
The order opens immediately but I need it to be 4 pips lower after remembering
Hi!
I have a question.
Is there any way to remember the maximum drawdown?
I.e. today's drawdown is 16% and 20 days ago it was 5%, so the maximum drawdown is 16% and if tomorrow it is 24% then the maximum drawdown is 24%.
Or it is difficult to remember.
Hi!
I have a question.
Is there any way to remember the maximum drawdown?
I.e. today's drawdown is 16% and 20 days ago it was 5%, so the maximum drawdown is 16% and if tomorrow it is 24% then the maximum drawdown is 24%.
Or it is complicated.
CodeBase has indicators that display the Balance, Equty history from the trading history. There is more than one such tool.
Take the data and calculate it like a normal indicator
CodeBase has indicators that display Balance, Equty history from the trading history. And there is more than one, such tools.
Take the data and calculate it as for a standard indicator
Well of course you can output to an indicator and do comparisons.
Thank you!!!
tried it, it starts opening orders non-stop
tried it, it starts opening orders non-stop
Right, no check for open orders.
No button release function :)
Right, no check for open orders.
I'll try to add it and report back.