Requests & Ideas (MQL5 only!) - page 33

 
Vladimir Karputov:

GalacticExplosion.mq5

version "1.006"

Limitations: the calculation of profits is simplified so far - the profit on the trading account is taken into account (that is, profit, swap and commission for our magic are not taken into account yet). Opens no more than 8 positions.

Paragraphs 1-8 are fulfilled. Details in the project:

Dear Vladimir,

Thank you! This is amazing!!!

Have a very blessed week.
 
Felipe Ponce Aragon :

***

9. If we have 8 open trades or more we will open new trades in the exact same way as the first 8 trades, but now we will open them only if there's a distance of at least 10 pips (100 points) of drawdown between this new bar and the closest previous trade. This is not grid trading, we will open trades at whatever distance the new bar opens, as long as it's minimum 10 pips with respect to any previous trade AND that we're not in the forbidden time.

***


I have a question: "is the situation permissible, when there are BUY positions and SELL positions?"

 
Vladimir Karputov:

I have a question: "is the situation permissible, when there are BUY positions and SELL positions?"

Hi dear Vladimir, by now my algorithm is that all trades are in the same direction at the same time, only BUY open positions or only SELL positions at the same time. 

In the long future we could do in both directions, but with the algorithm I have in mind I don't know how to hedge in both directions at the same time... I would not know what rules to give to do that, sorry.

Ah but I have an idea, if you have ideas to hedge in both directions you can create another EA and make it hedge in both directions. Sorry, by now I dunno how to do that ! :) 
 
Hello! Once again, thank you so much for this opportunity! Below is my request.

I’m wanting an EA that allows me to trade using a zone-based strategy. A zone is essentially a price area at which one usually believes price is going to reverse. We commonly find them in trading referred to as “price reversal zones”, “pivots” or “supply/demand zones”. 

When I’m trading in a zone, I usually draw out the price at which I’m willing to buy/sell into the zone (this is my entry price) and the price that I will exit the trade if the price of the asset is not moving in my desired direction (this is my stop loss price). Additionally, I set a target for where I think price will go if it is successful in reversing.

As of right now, to get the lowest risk entry, I have to literally sit and watch price. I set price alerts in my platform and then once price crosses my alert price, I have to be there to place an order. This order is usually a buy stop or sell stop.

I only want to enter trades when price actually reverses and exits the zone in my desired direction. We call that a “confirmation entry” because price moves into my order from within the zone. I don’t want to have to sit and wait for price to enter the zone and then place the orders. I want the EA to do this for me.

I want an EA that will allow me to designate all of the necessary variables, then that places an order when price crosses the activation price that I set. Additionally, I want to be able to use two protective stops. One standard stop loss that sits at a certain pre-defined price (usually a few pips below the zone) and the second one would be a trailing stop that allows for partial take profits and closes based on if price returns to trigger the trailing stop.

Here’s the specs…

  1. Be able to Input if the order is a buy/sell. 
  2. I want to input the lot size of the trade. 
  3. I want to input the asset to trade, i.e. EUR/USD, XAGUSD, a stock, commodity, or whatever else I’m trading.
  4. Input the near current price zone line, i.e. the price at which price needs to cross in order for the EA to place my buy/sell stop order. We can call this the "activation price", or "proximal zone price”.
  5. Input the far from current price zone line, i.e. the price at which the EA will cancel my buy/sell stop order if price crosses this line. We can call this the "invalidation price" or the "distal zone price”.
  6. Input the actual purchase price, i.e. the price at which the order should be placed if price crosses the activation price line. —> This is the buy/sell stop order.
  7. Input the standard stop loss/protective stop price for the buy/sell stop order to be placed.
  8. Input the target price of the buy/sell stop order that will be placed.
  9. Set if there should be a trailing stop or not.
  10. Set the number of pips for the trailing stop.
  11. Set the partial lot size that should be closed if price returns to the level of the trailing stop.
  12. The standard stop loss closes any remaining portion of the lot size if price returns to the level of the standard stop. The standard stop can be moved up and adjusted as usual.
  13. I’d like to have an ID number or Unique identifier for the relating "invalidation listeners" and entry orders set by the EA.
  14. If the market price reaches my pending order entry price and fills the order, the EA should cancel the “invalidation listener”.
  15. Once the trade is active in the market and the order filled, the EA should essentially be “off” for that trade and do nothing else. (The trailing stop could just be an instance of MT5’s standard trailing stop feature that is simply triggered by the order that the EA set, the trade itself does not need to be managed by the EA at all once activated.
  16. I’d like to be able to manually cancel any pending activation zones and be sure that the EA does not set any pending orders after doing so.
  17. I’d like to be able to see a full list of all of the pending activation zones that the EA is listening for and be able to manage (i.e. edit and delete) them.
  18. When managing the pending activation zones, there should be an alert if I’m about to delete and invalidation listener that is listening for a pending entry order that has yet to be filled.

The general idea here is that I want to minimize my risk with zone-based trading. I only want to get into a trade if it’s moving into my ideal price. And I do not want to put money on the table if it is not. Additionally, I want a trailing stop to secure profits immediately on the first pull back in any move that is a move in my desired direction.


In the image above, you’re seeing the actual pending MT5 order on the asset. This is what it would look like after the activation price has been reached and the EA places the order. Additionally though, the EA would be “listening” to price to ensure that if it crosses below the invalidation price (usually the same as the pending stop loss), that the order will be canceled and ruled out as invalidated.

Once price moves up into the buy price, the order would be activated with a trailing stop that is trailing by whatever number of pips I’ve indicated for that particular trade.

Do you believe that this is something you can code? If so, I would greatly appreciate it! This tool will help me minimize my risk and therefore increase my overall risk to reward ratio when trading.

Thanks!
 
Vladimir Karputov:

I have a question: "is the situation permissible, when there are BUY positions and SELL positions?"


hi sir, i need indicator mql5 for showed total pips closed today and the amount and growth today.

thanks for advance first.

 
Felipe Ponce Aragon :

***


Items 1-9 are fulfilled. Please check and show tests on currency pairs.

GalacticExplosion

version   "1.007"

Details in the project:

Forum on trading, automated trading systems and testing trading strategies

Requests & Ideas (MQL5 only!)

Vladimir Karputov , 2017.12.18 21:31

I chose the name of the adviser: "GalacticExplosion".

I created a public project "GalacticExplosion":

public project "GalacticExplosion"

To participate in the project, upgrade your terminal to the build of 1711.


 
forextime8 :

hi sir, i need indicator mql5 for showed total pips closed today and the amount and growth today.

thanks for advance first.


What's the idea? I do not see any ideas yet.

 
Vladimir Karputov:

Items 1-9 are fulfilled. Please check and show tests on currency pairs.

GalacticExplosion

version   "1.007"

Details in the project:


Dear Vladimir, 

Thank you very very much! Here's my backtest with these settings: Pair: GBP/USD. Timeframe: 4H. START HOUR: 0.   END HOUR: 8 Lot: 0.1  All others as default.  I have a comment, but since I'm very grateful for the great work you're doing here and I know this thread as specified "as is" in your first message, don't consider this a request, but an idea, and if you don't do it I'll still be very grateful for this. And I'm not sure this idea is possible!My idea is about the START and END time. I've seen that many EAs accept that parameter always in the same day and don't accept it from the previous day. Example: You can enter START HOUR: 0, END HOUR: 8 and that's ok. But if you enter START HOUR: 20  and END HOUR: 8, the EA doesn't open any trade in backtest, because it doesn't admit an hour from one day and another hour from the next day (the day finishes at 0)

I believe this algorithm would perform better in brokers that are GMT+2 or GMT+3 if we could use START HOUR: 20  and END HOUR: 4. That means the time period start in one day and finishes in the other! So if that's tricky when we finish this I can hire you as freelancer to do that, I'm not a programmer and have no idea of how hard that can be or if it's possible! 

Have a blessed day and weekend. This is great Vladimir, I appreciate it.



 
Vladimir Karputov:

What's the idea? I do not see any ideas yet.

It's just a info indicator for inform abt performance for current day.
 
Felipe Ponce Aragon :

Dear Vladimir, 

Thank you very very much! Here's my backtest with these settings: Pair: GBP/USD. Timeframe: 4H. START HOUR: 0.   END HOUR: 8 Lot: 0.1  All others as default.  I have a comment, but since I'm very grateful for the great work you're doing here and I know this thread as specified "as is" in your first message, don't consider this a request, but an idea, and if you don't do it I'll still be very grateful for this. And I'm not sure this idea is possible!My idea is about the START and END time. I've seen that many EAs accept that parameter always in the same day and don't accept it from the previous day. Example: You can enter START HOUR: 0, END HOUR: 8 and that's ok. But if you enter START HOUR: 20  and END HOUR: 8, the EA doesn't open any trade in backtest, because it doesn't admit an hour from one day and another hour from the next day (the day finishes at 0)

I believe this algorithm would perform better in brokers that are GMT+2 or GMT+3 if we could use START HOUR: 20  and END HOUR: 4. That means the time period start in one day and finishes in the other! So if that's tricky when we finish this I can hire you as freelancer to do that, I'm not a programmer and have no idea of how hard that can be or if it's possible! 

Have a blessed day and weekend. This is great Vladimir, I appreciate it.

The project "GalacticExplosion" I will finish on the basis of the description (   ).

Of course, later, if you want, you can create an individual work for me ( To create new work for me https://www.mql5.com/en/job/new?prefered=barabashkakvn ).

Reason: