Tea-TIme:
Hi friends,
Is there any indicator in the market which is free...
try search in codebase or implement below code in your indicator.
int candleclose() { double open = iOpen(_Symbol,PERIOD_CURRENT,1); double high = iHigh(_Symbol,PERIOD_CURRENT,1); double low = iLow(_Symbol,PERIOD_CURRENT,1); double close = iClose(_Symbol,PERIOD_CURRENT,1); int range = int ((high-low)/_Point); int closerange = 0; if(open<close) closerange = int ((close-low)/_Point); // Bullish else if(open>close) closerange = int ((high-close)/_Point); // Bearish return (closerange*100)/range; }
Tea-TIme: i am a newbie in code. How can I use your code implement into indicator. :/
- When you post code please use the CODE button (Alt-S)!
(For large amounts of code,
attach it.)
Please edit
your post.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor -
You have only four choices:
- Search for it,
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- Beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!),
- or pay (Freelance) someone to code it.
No free help
urgent help.
whroeder1:
- When you post code please use the CODE button (Alt-S)!
(For large amounts of code,
attach it.)
Please edit
your post.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor -
You have only four choices:
- Search for it,
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- Beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!),
- or pay (Freelance) someone to code it.
No free help
urgent help.
ok 1st time using this forum. thanks for the tip
//+------------------------------------------------------------------+ //| Bar%.mq4 | //| K.fx | //| | //+------------------------------------------------------------------+ #property copyright "K.fx" #property link "" #property version "1.00" #property strict #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int candleclose() { double open = iOpen(_Symbol,PERIOD_CURRENT,1); double high = iHigh(_Symbol,PERIOD_CURRENT,1); double low = iLow(_Symbol,PERIOD_CURRENT,1); double close = iClose(_Symbol,PERIOD_CURRENT,1); int range = int ((high-low)/_Point); int closerange = 0; if(open<close) closerange = int ((close-low)/_Point); // Bullish else if(open>close) closerange = int ((high-close)/_Point); // Bearish return (closerange*100)/range; } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //--- //--- return value of prev_calculated for next call return(rates_total); } //+------------------------------------------------------------------+
Eleni Anna Branou:
Use the </> button to insert your code.
Thank you. I have edited it. Sorry for that... I was not used to the forum but definitely is going to adjust to it. ;D
... const int &spread[]){ return(rates_total); }
You just posted code that does nothing! Start with making it separate chart, add a buffer, and draw a line. (Find an example in the code base.)- If you want "When your mouse point at this candle" then you will have to implement events which is a hundred times harder than #1.
Client Terminal Events - MQL4 programs - MQL4 Reference
Indicators: 'Money Manager Graphic Tool' indicator by 'takycard' Forum - Page 6
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi friends,
Is there any indicator in the market which is free... that shows a Bar close at how many % of the whole body?
When my mouse point at that bar, it will review at the right top side of the Chart. Very small with number percentage showing in colour Setting.
Red = Bear
Example 40%
Green = Bull
Example 96%
im using mt4. Thank you for you guys help.
:)
When your mouse point at this candle (blue arrow) it shows 75% at the right corner, means the bar closed at 75% of the candle. 75% in Blue means Bullish Bar
When your mouse point at this candle (blue arrow) it shows 92% at the right corner, means the bar closed at 92% of the candle. 92% in red means Bearish Bar
When your mouse point at this candle (blue arrow) it shows 90% at the right corner, means the bar closed at 90% of the candle. 90% in red means Bearish Bar