its diffrent everytime
How to calculate forex position sizing / lot sizing 17 replies
MT4 plugin for simultaneous trade on friend's account? 1 reply
BUY run profit 1 lot, SELL LIMIT 2 LOT down again n BUY 1 lot - EA Reqd 5 replies
Help with Lot sizing 3 replies
IBFX Lot sizing 10 replies
DislikedHi there, i mean for example when i select BUY it draws the blue TP line and the red SL line, but i need just the SL line :-) I have tried this it works so far, is that good? EasyOrder_Draw.mq4 string desc[3] = {"SL", "Price", "TP"}; color clr[3] = {Red, Gold, Blue}; double lines[3]; string desc[2] = {"SL", "Price"}; color clr[2] = {Red, Gold}; double lines[2]; The changes are in red (change 3 to 2 and delete TP and Blue) Is it possible to add comission or spread to the risk calculation?Ignored
//change i<3 to i<2 for(i=0; i<2; i++) { obj = "EASYORDER_NEW_"+desc[i]; if(ObjectFind(obj)>=0) ObjectDelete(obj); ObjectCreate(obj, OBJ_HLINE,0,Time[0],lines[i]); ObjectSet(obj,OBJPROP_WIDTH,2); ObjectSet(obj,OBJPROP_COLOR,clr[i]); }
//set tp = 0 double lot = alot[0]; sl = NormalizeDouble(ObjectGet(obj+"SL",OBJPROP_PRICE1),Digits); tp = 0; //NormalizeDouble(ObjectGet(obj+"TP",OBJPROP_PRICE1),Digits); RefreshRates();
risk = risk/100*balance;
risk = risk/100*(balance/MarketInfo(Symbol(),MODE_TICKVALUE));
DislikedQuestion to sangmane Of course first thank you for the script. I have non dollar based account so I modified line 149 of EasyOrder_Submit from risk = risk/100*balance; to risk = risk/100*(balance/MarketInfo(Symbol(),MODE_TICKVALUE)); Now it calculates proper size of position in my account currency. But I'm tinkerer and not sure if the modification won't have unwanted side effects. Can you approove it?Ignored
DislikedHi Sangmane, first of all, thank you so much for the great script, it definitely makes my life a lot easier when placing an order and adjusting SL and TP level, simply with your mouse. However, I was wondering if the script is also able to generate and place diagonal trendlines for new order, SL, and TP?Ignored