- how to fill color for ichimoku cloud?
- How to code Ichimoku based breakout cloud?
- Errors, bugs, questions
double Cloud = iIchimoku(NULL, 0, 9, 26, 52, MODE_TENKANSEN, 1)
Why are you getting the Tenkansen value when you want the cloud?
if (PRICE_CLOSE < MovingAverage)
PRICE_CLOSE is an enum, not a price.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
Why are you getting the Tenkansen value when you want the cloud?
PRICE_CLOSE is an enum, not a price.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
Thanks, sorry about that, which one is the cloud Kijunsen or Senkouspana
Thanks, sorry about that, which one is the cloud Kijunsen or Senkouspana
You want to use the cloud, yet you don't know what the cloud is??
It is made up of 2 buffers, senkouspan A and B.
You want to use the cloud, yet you don't know what the cloud is??
It is made up of 2 buffers, senkouspan A and B.
Just practicing getting to know stuff i dont know yet Thanks
Just practicing getting to know stuff i dont know yet Thanks
Looking back what would I use instead of PRICE_CLOSE?
It depends on your strategy logic. Did you mean to use the previous candle's close price "Close[1]" or did you want to use the current market price (Bid or Ask)?
Since, all chart and indicator data is based on Bid prices, you most probably will want to use the Bid price for comparisons with chart or indicator data.
However, please note that there is spread to consider. Buy orders open at Ask and close (SL & TP) at Bid price. Sell orders open at Bid and close (SL & TP) at Ask price.
See the documentation on predefined variables - https://docs.mql4.com/predefined
It depends on your strategy logic. Did you mean to use the previous candle's close price "Close[1]" or did you want to use the current market price (Bid or Ask)?
Since, all chart and indicator data is based on Bid prices, you most probably will want to use the Bid price for comparisons with chart or indicator data.
However, please note that there is spread to consider. Buy orders open at Ask and close (SL & TP) at Bid price. Sell orders open at Bid and close (SL & TP) at Ask price.
See the documentation on predefined variables - https://docs.mql4.com/predefined
Great thanks!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use