You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Have a nice and profitable day everyone!
I can't put the "close orders after a certain period of time in seconds" code into my Expert Advisor.
I found this code :
void CheckForClose()
{
for(int i=0;i<OrdersTotal();i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;
if(OrderSymbol()!=Symbol()) continue;
if(OrderType()==OP_BUY || OrderType()==OP_SELL)
{
if(OrderOpenTime()+60 <=TimeCurrent())
OrderClose(OrderTicket(),OrderLots(),Bid,3);
break;
return(0);
}
}
}
Help someone please! 2 days I've been sitting here with nothing((((
If you have a good strategy, and you are willing to share it, I can write an EA. I invite you to discuss either publicly or in private messages.
If you can help me write an EA not for opening trades, but only for sending signals to email and the screen, I would be very grateful.
The idea is simple, but I use the oi method and scalping when I have time, and I trade mid-term on H4. But due to lack of time I often miss signals on Medium term. I do not like scalping (it is not my style).
The idea is simple - to filter the main signal to open the deal - crossing the line indicator CCI signal MA, crossing the line indicatorWilliams' Percent Range (WPR) line indicator RSI. TK is available, but ready to finalize it under your conditions. Crossovers to catch on each candle open in the terminal or specified in the parameters of the TF by ticks with a period of 10-20 sec.
Please write an advisor based on Renko.
The idea is to take the full potential of the movement. There will be losing trades, but then they overlap with the trend.
On the fourth (or third) bar, going in a row in one direction, we open a deal in the direction of the bars movement, i.e., follow the price. Then, when the next column appears in our direction (on the trend) we open one more deal with the same volume in the same direction. And so on, each time we open a new deal, accumulating the number of open deals, with each appearance of a new bar in our direction. If the trend is good, the number of open trades will increase and when the series closes, we will have a big plus. Renko is known to more or less filter the flat, which is only a plus.
Closing of orders with rollover:
Closing is done using a filter. Filter: Three consecutive (or four) bars in the opposite direction. A series is closed (profitable or unprofitable) and a new trade is immediately opened in the opposite direction with subsequent accumulation.
-------------------------------
With the profitable side it is clear what the losing (flat) side looks like:
Three (or two) bars in a row - one trade opened, then the same amount in the opposite direction - one losing trade.
Four bars in a row - two deals opened, then in the reverse three (or two) - two losing trades.
Five consecutive bars - three trades opened, then three (or two) in reverse - two unprofitable, one at breakeven.
Six consecutive bars - four trades opened, then three (or two) in reverse - two losing, one profitable.
Seven consecutive bars - five trades opened, then three (or two) in reverse - two losing, one breakeven, two profitable.
If we suppose that there is an accumulation of orders both on one side and on the other, then, correspondingly, two losing trades are one deal of one bar and another one (the first one) is of two stacks. That is, in effect, minus three bars. But if the accumulation occurs on a trend of fifteen or twenty bars, then theoretically all this should cover the losses.
It is also possible to experiment with aggression and increase the lot in each trade, the amplitude of the balance will jump, but in a trend give huge profits.
Thank you.
Please write an advisor based on Renko.
The idea is to take the full potential of the movement. There will be losing trades, but then they overlap with the trend.
On the fourth (or third) bar, going in a row in one direction, we open a deal in the direction of the bars movement, i.e., follow the price. Then, when the next column appears in our direction (on the trend) we open one more deal with the same volume in the same direction. And so on, each time we open a new deal, accumulating the number of open deals, with each appearance of a new bar in our direction. If the trend is good, the number of open trades will increase and when the series closes, we will have a big plus. Renko is known to more or less filter the flat, which is only a plus.
Closing of orders with rollover:
Closing is done using a filter. Filter: Three consecutive (or four) bars in the opposite direction. A series is closed (profitable or unprofitable) and a new trade is immediately opened in the opposite direction with subsequent accumulation.
-------------------------------
With the profitable side it is clear what the losing (flat) side looks like:
Three (or two) bars in a row - one trade opened, then the same amount in the opposite direction - one losing trade.
Four bars in a row - two deals opened, then in the reverse three (or two) - two losing trades.
Five consecutive bars - three trades opened, then three (or two) in reverse - two unprofitable, one at breakeven.
Six consecutive bars - four trades opened, then three (or two) in reverse - two losing, one profitable.
Seven consecutive bars - five trades opened, then three (or two) in reverse - two losing, one breakeven, two profitable.
If we suppose that there is an accumulation of orders both on one side and on the other, then, correspondingly, two losing trades are one in one bar and another trade (the first one) is two in two stacks. That is, in effect, minus three bars. But if the accumulation occurs on a trend of fifteen or twenty bars, then theoretically all this should cover the losses.
It is also possible to experiment with aggression and increase the lot in each trade, the amplitude of the balance will jump, but in a trend give huge profits.
Thank you.
Renco has a whole bunch of EAs and indicators in CodeBase
Unfortunately, I couldn't find a similar one.
https://www.mql5.com/ru/search#!keyword=renko&module=mql5_module_codebase
https://www.mql5.com/ru/search#!keyword=renko&module=mql5_module_codebase
These are indicators. I need an Expert Advisor according to the conditions above. I am not very good at coding.
I can't find it in the database and on the Internet (maybe I'm looking too hard, I don't deny it).
This is a lot of text and lyrics, which obviously complicates the perception of the information.
When you write your terms of reference, try to remember the golden rule: Withfeeling, withreason, withtheintention.