ido370 / Publications
Forum
incrementing lotsize
i have the following code right now, and i want to increase the lotsize every 1000 dolllar: for the variables: extern bool increment= true ; extern double Incrementlevel = 1000 ; extern double BaseLot = 0.1 ; and in the start: if (increment) { int lotmultiple = AccountBalance ()/increment; lots =
ordermodify stoploss at wrong value
HI, ik got a double variable named bebuy which has the number 10 in it. I want to use the following to modify the stoploss, but somehow instead of Ask-bebuy(=Ask-10 pips), it puts the SL maybe 200 pips lower? I believe i use something wrong in the syntax, but can't see it. Who can help me with this
multiple orders - error 130
i'm trying to send 2 stop orders after each other, but i get a lot of error 130's. this is the code i use: So what should i change to get rid of the errors? Right now only the first order is taken it seems //DIGIT FIX if ( Digits == 5 || Digits == 3 ) { // Adjust for five (5) digit brokers
trailing stop not working
I'm trying to insert a trailing stop function in my EA, but somehow i don't get it working properly. I am trying to do as below: void MoveTrailingStop() { int cnt, total; bool move=false; double Trailer_buy, Trailer_sell; double sl=OrderStopLoss(); Trailer_buy= NormalizeDouble
signaltable changed, not working
Hello fellow traders, i found the signaltbale indicator on this site, and wanted to modify the SAR,WPR and MA into something different. But somehow (i only changed the "if" parts) its not working. Who can help me with the solution for this? The original: https://www.mql5.com/en/code/8179 This is
Arrows and Alert not functioning
I have this indicator, and i was working on alert function and to display arrows when signal is valid. Alert function works, but only for 1 pair (not on other 5 pairs i have open then), so i think this has to do with the "if (TimeCurrent() > allowAlert)" command. Arrows same thing, appear one time
check object color with if loop - possible?
Hi, i have the following code and was wondering if this is the right way to check the colors, since i couldn't find something similar: color result1=ObjectGet( "rule1" , OBJPROP_COLOR ); color result2=ObjectGet( "rule2" , OBJPROP_COLOR ); color result3=ObjectGet( "rule3" , OBJPROP_COLOR ); if
mtf traffic light indicator - not right when switching charts
Hello, i created an indicator to show some values as a "trafic light". first light has to become orange (same for buy and sell), and the other two green(for buy setup) or red (for sell setup) . It is al working OK, but now i wanted to see 3 other currency pairs too in the same way, so i
buystop error 4107 / 130
got the following code. for the ordersend command i want to set the open price on the value of hh5 (highest price from last 5 bars), but i keep getting error 4107 or 130. Could someone show me what im doing wrong? atrvalue= iATR ( NULL , 0 , 20 , 0 )* 10000 ; atrcalc=atrvalue* 1.5 ;
orderdelete with ticketnumber
i have the follwing commands to send the order: buyStopOrder=OrderSend(Symbol(),OP_BUYSTOP,lots,entryw1,100,SLw1,TPw1,NULL,333,0,Blue); sellStopOrder=OrderSend(Symbol(),OP_SELLSTOP,lots,entryw2,100,SLw2,TPw2,NULL,444,0,Red); and then the following code. The EA should (for example) delete pending