Indicators Used
0
Views
0
Downloads
0
Favorites
PriceCounter
// Price and Counter Display
// only string no line no indicator
//
#property indicator_chart_window
extern bool Right_Left = false;
extern color font_price = White;
extern color font_counter = White;
extern int size_price = 20;
extern int size_counter = 10;
int counter1 = 0;
int init()
{
return(0);
}
int deinit()
{
ObjectsDeleteAll(0,OBJ_LABEL);
return(0);
}
int start()
{
string PRC1;
counter1 = counter1 + 1;
double Price1 = iMA(Symbol(),0,1,0,MODE_EMA,PRICE_CLOSE,0);
PRC1 = DoubleToStr(Price1,Digits);
ObjectCreate("Signalprice", OBJ_LABEL, 0, 0, 0);
ObjectSetText("Signalprice",""+PRC1+"", size_price, "Arial", font_price);
ObjectSet("Signalprice", OBJPROP_CORNER, Right_Left);
ObjectSet("Signalprice", OBJPROP_XDISTANCE, 5);
ObjectSet("Signalprice", OBJPROP_YDISTANCE, 5);
ObjectCreate("updatecount", OBJ_LABEL, 0, 0, 0);
ObjectSetText("updatecount",""+counter1+"", size_counter, "Arial",font_counter);
ObjectSet("updatecount", OBJPROP_CORNER,Right_Left );
ObjectSet("updatecount", OBJPROP_XDISTANCE, 5);
ObjectSet("updatecount", OBJPROP_YDISTANCE, 40);
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
---