I know the reference and book does not mention this but curious how it works for assignment instead of comparison. Can this even be done as intended ? For example: extern bool chart_period=true; // extern bool macdm1=false; extern bool macdm5=false; extern bool macdm15=false; extern bool
Curious if these the same ? I assume the compound operators need to be in brackets, but I've seen code written this way and wondered why ? Please confirm thanks if (A_high()) ObjectSet( "B6" , OBJPROP_BGCOLOR , clrRed ); else { ObjectSet( "B6" , OBJPROP_BGCOLOR , clrBlack );
I'm asking generically for concept ideas because I don't really understand where to start. I'm trying to figure out how to toggle multiple indicators for EA backtesting so that I don't have to change each comparison line in the the code everytime. I was thinking perhaps bool properties for
Help me correct my logic on this. int upcount,downcount; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { //--- //---
Hi, I get undeclared indentifier for A when printing from void type. void down_count() { for ( int i= 0 ; i < 50 ; i++) { double histo = iCustom ( NULL , 0 , "MACD True" , 2 ,i); double val1 = iFractals ( NULL , 0 , MODE_UPPER, i); if (histo < 0 && val1 != 0 )
Oanda Live, and Oanda Demo platforms. I used the tester on both and Live "visible charts" I see the chart moving slow even with the slider all the way full speed. On Demo it's as expected and very fast as I am use to. Is there some difference for Live vs Demo testing in the strategy tester
I'll keep working on finding out why this happens, and post some code tomorrow but the code is long so I wanted to ask generically with this pic. Tester places multiple orders in a row, then closes at stops multiple times in a row. Stops were not hit as shown in the tester. I know how to limit
Can the individual candle colors be changed or only for the entire chart ? My attempt here: void bullish_engulfing_candle() { for ( int i= 1 ; i<=50 ; i++) { if (Close[i+ 1 ] >= Open[i+ 1 ] && Close[i] < Open[i] && Close[i+ 1 ]-Open[i+ 1 ] < Open[i]-Close[i]) ChartSetInteger (
How to toggle or make a blinking Object or to oscillate colors or something ? Is this possible or does the code just read so fast that it wouldn't be noticed ? I can see doing a counter of some type but I don't want to hold up reading of the rest of the code either. Is there such a thing ? Or has
Can an indicator such as H4 or D1 be shown on a different time such as M15 or M5 ? Since the indicators properties do not have any options for this I assume "no". I figured I would ask about this before starting to make this code. Thanks