Price Data Components
Indicators Used
0
Views
0
Downloads
0
Favorites
Blur's Prices&Time
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
// Blur's Prices&Time.mq4 //
// BLUR71 //
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
#property copyright "BLUR71"
#property link "blrobertsjr@hotmail.com"
#property link "www.forex-tsd.com"
#property indicator_chart_window
extern string TextFont = "Arial Bold Italic";
extern int TextSize = 13;
extern double Digit3Adjust = 2.0;
extern double Digit4Adjust = 2.0;
//----
int deinit()
{ ObjectDelete("CandleTime");
ObjectDelete("CandleBidPrice");
ObjectDelete("CandleAskPrice");
return(0); }
//----
int start()
{ int Minutes,Secs; double Adjust; string TimeOutput,BidPrice,AskPrice; color PriceColor;
double STO = iStochastic(NULL,0,5,4,4,0,0,MODE_MAIN,0);
double RSI = iRSI(NULL,0,5,0,0);
double CCI = iCCI(NULL,0,6,0,0);
if ((RSI > 60) && (STO > 70) && (CCI > 0)) PriceColor = Lime;
if ((RSI < 40) && (STO < 30) && (CCI < 0)) PriceColor = Red;
else PriceColor = DarkOrange;
if (Digits<=3) Adjust = iATR(NULL,0,50,0)/(Digit3Adjust); TimeOutput=" ";
if (Digits>=4) Adjust = iATR(NULL,0,50,0)/(Digit4Adjust); TimeOutput=" ";
BidPrice = TimeOutput+DoubleToStr(Bid,Digits);
AskPrice = TimeOutput+DoubleToStr(Ask,Digits);
Minutes = Time[0] + Period() * 60 - CurTime();
Secs = Minutes % 60;
Minutes = (Minutes - Minutes % 60) / 60;
if(Minutes<10) TimeOutput=TimeOutput+"0";
TimeOutput=TimeOutput+Minutes+":";
if(Secs<0) Secs=0;
if(Secs<10) TimeOutput=TimeOutput+"0"+Secs;
else TimeOutput=TimeOutput+Secs+"";
ObjectDelete("CandleTime");
ObjectCreate("CandleTime", OBJ_TEXT, 0, Time[0], Close[0]+0.00);
ObjectSetText("CandleTime", TimeOutput, TextSize, TextFont, PriceColor);
ObjectDelete("CandleBidPrice");
ObjectCreate("CandleBidPrice", OBJ_TEXT, 0, Time[0], (Close[0]-Adjust));
ObjectSetText("CandleBidPrice", BidPrice, TextSize, TextFont, PriceColor);
ObjectDelete("CandleAskPrice");
ObjectCreate("CandleAskPrice", OBJ_TEXT, 0, Time[0], Close[0]+Adjust);
ObjectSetText("CandleAskPrice", AskPrice, TextSize, TextFont, PriceColor);
return(0); }
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---