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
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
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 ||
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
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
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() >
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
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
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
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
can someone show me what needs to be changed to get the following code working? I'm having 2 pending orders , which need to be modified (with magicnumber 222 and 333). When a green line on the chart is moving, it needs to adjust the openprice, TP and
Good evening, i'm having trouble to let my EA place pending orders when the middle white line on the chart is touched/reached. What am i doing wrong? i only left the necessary code in here, because it was too long to post here... double
Hello, currently im stuck at my EA code. Almost everything works fine, but i also want it to display how many trades are already closed. Right now is use the following piece of code. But the "Closed orders: " always shows 0, while i have