Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b784e9556d | |||
| 695a66b812 | |||
| bd3a18958e |
@@ -96,7 +96,7 @@ void OnTick()
|
|||||||
double MA1[]; // array to be filled by values of the first moving average
|
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
|
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
|
// 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.
|
// the RangeBars indicator attached.
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SHOW_INDICATOR_INPUTS
|
//#define SHOW_INDICATOR_INPUTS
|
||||||
|
|
||||||
//
|
//
|
||||||
// You need to include the RangeBars.mqh header file
|
// You need to include the RangeBars.mqh header file
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#property copyright "Copyright 2017, AZ-iNVEST"
|
#property copyright "Copyright 2017, AZ-iNVEST"
|
||||||
#property link "http://www.az-invest.eu"
|
#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_INDICATOR_NAME "Market\\Range Bars Charting"
|
||||||
|
|
||||||
#define RANGEBAR_OPEN 00
|
#define RANGEBAR_OPEN 00
|
||||||
#define RANGEBAR_HIGH 01
|
#define RANGEBAR_HIGH 01
|
||||||
|
|||||||
@@ -485,7 +485,7 @@ bool CMarketOrder::Modify(ulong ticket, bool stopsInPips = true, int stoploss =
|
|||||||
//do checks
|
//do checks
|
||||||
if(!tradingChecks.OkToModifyPosition(symbol,ticket,priceSL,priceTP))
|
if(!tradingChecks.OkToModifyPosition(symbol,ticket,priceSL,priceTP))
|
||||||
{
|
{
|
||||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -532,7 +532,7 @@ bool CMarketOrder::Modify(ulong ticket, double priceSL=0,double priceTP=0)
|
|||||||
//do checks
|
//do checks
|
||||||
if(!tradingChecks.OkToModifyPosition(symbol,ticket,priceSL,priceTP))
|
if(!tradingChecks.OkToModifyPosition(symbol,ticket,priceSL,priceTP))
|
||||||
{
|
{
|
||||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -623,7 +623,7 @@ bool CMarketOrder::ModifyPending(ulong ticket, double entry, bool stopsInPips =
|
|||||||
//do checks
|
//do checks
|
||||||
if(!tradingChecks.OkToModifyOrder(symbol,ticket,entry,priceSL,priceTP))
|
if(!tradingChecks.OkToModifyOrder(symbol,ticket,entry,priceSL,priceTP))
|
||||||
{
|
{
|
||||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -671,7 +671,7 @@ bool CMarketOrder::ModifyPending(ulong ticket, double entry, double priceSL=0, d
|
|||||||
//do checks
|
//do checks
|
||||||
if(!tradingChecks.OkToModifyOrder(symbol,ticket,entry,priceSL,priceTP))
|
if(!tradingChecks.OkToModifyOrder(symbol,ticket,entry,priceSL,priceTP))
|
||||||
{
|
{
|
||||||
Alert("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
Print("Unable to modify: "+tradingChecks.GetCheckErrorToString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user