Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
Quick multiple buy
FSShop

Medlem sedan Oct 31, 2011  2 poster ForexSoftwareShop.com (FSShop) Oct 31 2011 at 14:58
Its simple forex MT4 soft for free:

'FSS Quick multiple buy' script will be useful for traders who need to quickly open multiple buy positions in Metatrader trading platform.

Inputs:
OrderCount - determine how much positions must be opened;
StopLoss - initial Stop Loss value;
StopLossStep - Stop Loss will be increased by StopLossStep value for every next order. If Stop Loss must be equal for all orders then input 0 for StopLossStep;
TakeProfit - initial Take Profit value;
TakeProfitStep - Take Profit will be increased by TakeProfitStep value for every next order. If Take Profit must be equal for all orders then input 0 for TakeProfitStep;
Lots - lot size;
ECN - if you are usin ECN broker, then select TRUE. If non-ECN broker, then select FALSE. If you are not sure, then leave FALSE.
Comm - comment.
-------------------------------------------------------------------------------

//+------------------------------------------------------------------+
//| FSS quick multiple buy.mq4 |
//| ForexSoftwareShop |
//| http://www.forexsoftwareshop.com |
//+------------------------------------------------------------------+
#property copyright 'ForexSoftwareShop'
#property link 'http://www.forexsoftwareshop.com'
#property show_inputs

#include <stdlib.mqh>

extern int OrderCount = 3;
extern double StopLoss = 0.005;
extern double StopLossStep = 0;
extern double TakeProfit = 0.002;
extern double TakeProfitStep = 0.003;
extern double Lots = 0.01;
extern bool ECN = FALSE;
extern string Comm = 'FSS_quick_multiple_buy';

//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
  {
//----
   int ticket, cnt, error;
   ticket = 0;
   for(cnt = 0; cnt < OrderCount; cnt++ )
      {
         RefreshRates();
         if (ECN == FALSE) ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss, Ask + TakeProfit, Comm, 123654);
         
         if (ticket == -1 || ECN == TRUE)
            {
               error = GetLastError();
               if(error == 130/* INVALID_STOPS */ || ECN == TRUE)
                  {
                     ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, 0, Comm, 123654);
                     if(ticket>0)
                        {
                           OrderSelect(ticket, SELECT_BY_TICKET);
                           if(OrderModify(OrderTicket(), OrderOpenPrice(), Ask - StopLoss, Ask + TakeProfit,0) == FALSE) ticket = -1;
                        }
                     if(ticket == -1)
                        {
                           error = GetLastError();
                           Print('Error nr.: ',error,' Error Description: ',ErrorDescription(error));
                        }
                  } else Print('Error nr.: ',error,' Error Description: ',ErrorDescription(error));
            } // ticket == -1
         
         StopLoss = StopLoss + StopLossStep;
         TakeProfit = TakeProfit + TakeProfitStep;
      }
//----
   return(0);
  }
//+------------------------------------------------------------------+

forexsoftwareshop.com
Vänligen logga in för att kommentera.
ECB President Draghi's Speech (4 min)
Potential for further upside in EUR/USD?...(8 min ago)
EURUSD 1.38362 GBPUSD 1.67909
USDJPY 102.376 USDCAD 1.10331
FxPro
Tools Community Recensioner Plattform Company Hjälp
Ekonomisk kalender Community Mäklare Widgets Om FAQ
Forex Market System Expert Advisors Funktioner Blogg Hjälp
Forex Volatility Most Popular Systems Signalleverantörer API Twitter Kontakta oss
Forex Correlation Strategier VPS Services Mobile Facebook Rapportera ett fel!
Forex Broker Spreads Tävlingar EA Programming Översättningar    
Forex Broker Quotes Forex Charts PAMM Brokers RSS    
Forex Broker Swaps Community Outlook Rebate Programs      
Streaming Forex News   Trading Platforms      
Forex Broker Volume          
COT Data New          
Liquidity New          

Sitekarta  |   Terms & Conditions  |   Privacy Policy
©2014 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.