TheForexGamer / Publications
Forum
Query Current Price Action
Is it possible to query the current moving price action, and not just the OHLC? I tried: MathAbs (Price[ 0 ] - Price[ 1 ].close > 0.0002 ) It doesnt work because I have no OHLC on the Price[0]. I also tried: MathAbs (( PositionGetDouble ( POSITION_PRICE_CURRENT ) - PriceDataTable[ 1 ].open) >
Minor Errors When Compiling. Cannot figure them out
Hi guys, I was wondering if you could help me with two issues I am currently having? :) Here is number 1: if(PositionSelect(_Symbol) == false) // We have no open position { if(MathAbs(PriceDataTable[1] - mAData[1]) < 10 * P) { if (my conditions to open a trade) {
Help Needed. Bare Bones of an RSI Expert Advisor
Hi guys, Im new to MQL5 and learning as much as I can. I wanted to ask if someone could write out the code for a very, very basic expert advisor robot. All I want it to do is when the RSI hits a certain number, I want to open a trade in the opposite direction with a take profit level and a stop