Fans of GUOs - page 6

 
updated both scripts:
1. now dll import is not needed
2. when you press "repeat" the lines are not drawn again ;) never noticed before
 
Put it here. It's about time we had a look.
 
<br / translate="no"> Put it here. It's about time we had a look.

they were posted a long time ago :) i'm just editing them
SendPendingOrder - " To GUO fans"
OrderModify - " To GUO fans"
 
the situation is called "so he wanted as I feared..." =)))
it's a pity that there is no criticism, no comments, no _any_ feedback....

or has everyone moved to TimeOut ? :О)
 
2 komposter
the situation is called "so he wanted as I feared..." =)))<br / translate="no"> sorry there is no criticism, no comments, no _any_ feedback.... or has everyone moved on to TimeOut ? :О)

You have error messages with GetLastError. Have you tried or don't want to use ErrorDescription(int error_code); ?
 
This little script (based on komposter's GUO ideas) allows you to easily close any open position.
//+------------------------------------------------------------------+
//|                                                    Close_Pos.mq4 |
//|                                      special thanks to komposter |
//|                                      mailto:komposterius@mail.ru |
//+------------------------------------------------------------------+
#property copyright "komposter"
#property link      "komposterius@mail.ru"
#include <WinUser32.mqh>

int start()
{
  int Order_Find_Radius=10,_OrderType,_break = 0, error;
  string Type;
  double DropPrice = PriceOnDropped();

  for(int x=0; x<=Order_Find_Radius; x++)
  {
  	for(int z=0; z<OrdersTotal(); z++)
  	{
  		OrderSelect(z,SELECT_BY_POS,MODE_TRADES );
  		if(OrderSymbol()==Symbol())
  		{
  			if((DropPrice-OrderOpenPrice())/Point<=x && (DropPrice-OrderOpenPrice())/Point>=0)
  			{ _break = 1; break; }
  			if((OrderOpenPrice()-DropPrice)/Point<=x && (OrderOpenPrice()-DropPrice)/Point>=0)
  			{ _break = 1; break; }
  		}
  	}
  	if( _break == 1 ) { break; }
  }

  if( _break == 1 )
  {
    _OrderType=OrderType();
    Type="";
    if(_OrderType==OP_BUY)  Type="BUY";
    if(_OrderType==OP_SELL) Type="SELL";
    int Answer=MessageBox("Закрыть позицию?\n\n"+"№:"+OrderTicket()+"  "+TimeToStr(OrderOpenTime(),3)+"  "+Type+"  "+Symbol()+"  "+DoubleToStr(OrderOpenPrice(),Digits),"Закрытие позиции.",MB_OKCANCEL);
    if(Answer==IDOK)
    {
      if(_OrderType==OP_BUY)  { OrderClose(OrderTicket(),OrderLots(),Bid,3,CLR_NONE); return(0); }
      if(_OrderType==OP_SELL) { OrderClose(OrderTicket(),OrderLots(),Ask,3,CLR_NONE); return(0); }
    }
  }

  if ( _break != 1 )
  {
  	MessageBox("Не удалось найти ордер!\n\n" +"Переместите скрипт на график недалеко от цены открытия.", "Попробуйте ещё раз"); 
  	return(0);
  }
}
 
avm, I am certainly pleased that the GUO idea has followers,
but no one seems to want it ))))
 
You are getting error messages from GetLastError. You haven't tried or you don't want to use ErrorDescription(int error_code) function on principle;

No, not as a matter of principle... And it's not the only thing you should do...
I just don't see the point =) people don't want to...

If I'll do it myself, I'll be sure to post it...
 
...and that's not the only thing that needs to be done... <br / translate="no"> just don't see the point =) people aren't demanding...
if I am going to finish it, I will definitely post it...

If there are no answers, it does not mean that all who are interested, have not copied
these scripts and don't use them. Look at any forum. About
Look at any forum about any of the posted software, not a single answer, but hundreds of downloads.
So I am sure people use. And so put everything you have. By the way,
I've had this idea for a long time, but I don't think I'll be able to implement it
to implement it, although it seems like the code would be pretty simple. And the idea is this - we take
...we take M5 (in the indicator) and "draw" on M10, or M20... etc...
 
avm, i keep asking you to "leave a note". it's not like i'm writing down the number of downloads)


actually, i have better things to do, and the guo i "do in my spare time" =))) hence the excuses :-P




take a story from M5 (in the indicator) and "draw" on the M10, or M20 chart

it's the same as for visual (graphical) analysis ...
nothing can be "glued" to such charts %)
Reason: