Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e4e0bb483a | |||
| b784e9556d | |||
| 695a66b812 | |||
| bd3a18958e |
@@ -96,7 +96,7 @@ void OnTick()
|
||||
double MA1[]; // array to be filled by values of the first moving average
|
||||
double MA2[]; // array to be filled by values of the second moving average
|
||||
|
||||
if(rangeBars.GetMA1(MA1,startAtBar,numberOfBars) && rangeBars.GetMA1(MA2,startAtBar,numberOfBars))
|
||||
if(rangeBars.GetMA1(MA1,startAtBar,numberOfBars) && rangeBars.GetMA2(MA2,startAtBar,numberOfBars))
|
||||
{
|
||||
//
|
||||
// Values are stored in the MA1 and MA2 arrays and are now ready for use
|
||||
|
||||
@@ -39,7 +39,7 @@ ulong currentTicket;
|
||||
// the RangeBars indicator attached.
|
||||
//
|
||||
|
||||
#define SHOW_INDICATOR_INPUTS
|
||||
//#define SHOW_INDICATOR_INPUTS
|
||||
|
||||
//
|
||||
// You need to include the RangeBars.mqh header file
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#property copyright "Copyright 2017, AZ-iNVEST"
|
||||
#property link "http://www.az-invest.eu"
|
||||
|
||||
//#define RANGEBAR_INDICATOR_NAME "RangeBars\\RangeBarsOverlay211"
|
||||
//#define RANGEBAR_INDICATOR_NAME "RangeBars\\RangeBarsOverlay213"
|
||||
#define RANGEBAR_INDICATOR_NAME "Market\\Range Bars Charting"
|
||||
|
||||
#define RANGEBAR_OPEN 00
|
||||
|
||||
@@ -485,7 +485,7 @@ bool CMarketOrder::Modify(ulong ticket, bool stopsInPips = true, int stoploss =
|
||||
//do checks
|
||||
if(!tradingChecks.OkToModifyPosition(symbol,ticket,priceSL,priceTP))
|
||||
{
|
||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ bool CMarketOrder::Modify(ulong ticket, double priceSL=0,double priceTP=0)
|
||||
//do checks
|
||||
if(!tradingChecks.OkToModifyPosition(symbol,ticket,priceSL,priceTP))
|
||||
{
|
||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -623,7 +623,7 @@ bool CMarketOrder::ModifyPending(ulong ticket, double entry, bool stopsInPips =
|
||||
//do checks
|
||||
if(!tradingChecks.OkToModifyOrder(symbol,ticket,entry,priceSL,priceTP))
|
||||
{
|
||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -671,7 +671,7 @@ bool CMarketOrder::ModifyPending(ulong ticket, double entry, double priceSL=0, d
|
||||
//do checks
|
||||
if(!tradingChecks.OkToModifyOrder(symbol,ticket,entry,priceSL,priceTP))
|
||||
{
|
||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user