submitted by jose092410 to Forex [link] [comments]
| | submitted by HelpfulTear to Daytrading [link] [comments] |
| | submitted by Woofyd to Forex [link] [comments] |
| | submitted by Lienterranova to OlympTradeVietnam [link] [comments] |
submitted by MacDee_ to Forex [link] [comments]
| | submitted by Lienterranova to u/Lienterranova [link] [comments] |
| | submitted by Lienterranova to u/Lienterranova [link] [comments] |
//+------------------------------------------------------------------+ //| OrderSizeCalc.mq4 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property link "https://www.mql5.com" #property version "1.00" #property strict #property indicator_chart_window #property description "Current version only works for accounts using USD. If your home currency is a different currency you need a modification to the code around lines 460-490 where your account currency is factored in." #property description "Move SL line (orange line) by dragging on chart and/or using A/Z keys." #property description "Move entry line (white line) by dragging on chart and/or using D/C keys." #property description "Move TP line (blue line) by dragging on chart and/or using S/X keys." #property description "By default, the indicator uses your MT4 balance as your balance." #property description "If you want to use a different number for account balance," #property description "click the label object and modify the Text property." #define VK_A 0x41 #define VK_B 0x42 #define VK_C 0x43 #define VK_D 0x44 #define VK_E 0x45 #define VK_F 0x46 #define VK_G 0x47 #define VK_H 0x48 #define VK_I 0x49 #define VK_J 0x4A #define VK_K 0x4B #define VK_L 0x4C #define VK_M 0x4D #define VK_N 0x4E #define VK_O 0x4F #define VK_P 0x50 #define VK_Q 0x51 #define VK_R 0x52 #define VK_S 0x53 #define VK_T 0x54 #define VK_U 0x55 #define VK_V 0x56 #define VK_W 0x57 #define VK_X 0x58 #define VK_Y 0x59 #define VK_Z 0x5A #define VK_UP 0x26 #define VK_DOWN 0x28 #define VK_RIGHT 0x27 #define VK_LEFT 0x25 //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { if (ObjectFind(0,"Stop Loss")<0){ ObjectCreate(0,"Stop Loss",OBJ_HLINE,0,Time[1],Close[1]-100*_Point); ObjectSetInteger(0,"Stop Loss",OBJPROP_COLOR,clrOrange); ObjectSetInteger(0,"Stop Loss",OBJPROP_SELECTABLE,true); ObjectSetInteger(0,"Stop Loss",OBJPROP_SELECTED,true); ObjectSetInteger(0,"Stop Loss",OBJPROP_WIDTH,3);} if (ObjectFind(0,"Take Profit")<0){ ObjectCreate(0,"Take Profit",OBJ_HLINE,0,Time[1],Close[1]+100*_Point); ObjectSetInteger(0,"Take Profit",OBJPROP_COLOR,clrAqua); ObjectSetInteger(0,"Take Profit",OBJPROP_SELECTABLE,true); ObjectSetInteger(0,"Take Profit",OBJPROP_SELECTED,true); ObjectSetInteger(0,"Take Profit",OBJPROP_WIDTH,3);} color entrylinecolor=clrBlack; if (ChartGetInteger(0,CHART_COLOR_BACKGROUND,0)==clrBlack){entrylinecolor=clrWhite;} if (ObjectFind(0,"Entry")<0){ ObjectCreate(0,"Entry",OBJ_HLINE,0,Time[1],Close[1]); ObjectSetInteger(0,"Entry",OBJPROP_COLOR,entrylinecolor); ObjectSetInteger(0,"Entry",OBJPROP_SELECTABLE,true); ObjectSetInteger(0,"Entry",OBJPROP_SELECTED,true); ObjectSetInteger(0,"Entry",OBJPROP_WIDTH,3); } if (ObjectFind(0,"Account Balance")<0){ double balance = AccountBalance(); ObjectCreate(0, "Account Balance", OBJ_LABEL, 0, Time[0], Close[0]); ObjectSetString(0, "Account Balance", OBJPROP_TEXT, DoubleToString(balance,2)); ObjectSetInteger(0, "Account Balance", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Account Balance", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Account Balance",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Account Balance",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Account Balance",OBJPROP_YDISTANCE, 10); ObjectSetInteger(0,"Account Balance",OBJPROP_XDISTANCE, 20);} if (ObjectFind(0,"Account Balance 2")<0){ double balance = AccountBalance(); ObjectCreate(0, "Account Balance 2", OBJ_LABEL, 0, Time[0], Close[0]); ObjectSetString(0, "Account Balance 2", OBJPROP_TEXT, "Modify this number to change your balance "); ObjectSetInteger(0, "Account Balance 2", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Account Balance 2", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Account Balance 2",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Account Balance 2",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Account Balance 2",OBJPROP_YDISTANCE, 10); ObjectSetInteger(0,"Account Balance 2",OBJPROP_XDISTANCE, 150);} if (ObjectGetInteger(0,"Percent Risk",OBJPROP_TYPE,0)==OBJ_HLINE){ ObjectDelete(0,"Percent Risk");} if (ObjectFind(0,"Percent Risk")<0){ ObjectCreate(0, "Percent Risk", OBJ_LABEL, 0, Time[0], Close[0]); ObjectSetString(0, "Percent Risk", OBJPROP_TEXT, 1.00); ObjectSetInteger(0, "Percent Risk", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Percent Risk", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Percent Risk",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk",OBJPROP_YDISTANCE, 40); ObjectSetInteger(0,"Percent Risk",OBJPROP_XDISTANCE, 50);} if (ObjectFind(0,"Percent Risk 2")<0){ double balance = AccountBalance(); ObjectCreate(0, "Percent Risk 2", OBJ_LABEL, 0, Time[0], Close[0]); ObjectSetString(0, "Percent Risk 2", OBJPROP_TEXT, "Modify this number to change your % risk "); ObjectSetInteger(0, "Percent Risk 2", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Percent Risk 2", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Percent Risk 2",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk 2",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk 2",OBJPROP_YDISTANCE, 40); ObjectSetInteger(0,"Percent Risk 2",OBJPROP_XDISTANCE, 120);} if (ObjectFind(0,"Percent Risk 3")<0){ double balance = AccountBalance(); ObjectCreate(0, "Percent Risk 3", OBJ_LABEL, 0, Time[0], Close[0]); ObjectSetString(0, "Percent Risk 3", OBJPROP_TEXT, "%"); ObjectSetInteger(0, "Percent Risk 3", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Percent Risk 3", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Percent Risk 3",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk 3",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk 3",OBJPROP_YDISTANCE, 40); ObjectSetInteger(0,"Percent Risk 3",OBJPROP_XDISTANCE, 20);} if (ObjectFind(0,"Calculate")<0){ double balance = AccountBalance(); ObjectCreate(0, "Calculate", OBJ_LABEL, 0, Time[0], Close[0]); ObjectSetString(0, "Calculate", OBJPROP_TEXT, "Click to Calculate"); ObjectSetInteger(0, "Calculate", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Calculate", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Calculate",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Calculate",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Calculate",OBJPROP_YDISTANCE, 160); ObjectSetInteger(0,"Calculate",OBJPROP_XDISTANCE, 10);} return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //--- //--- return value of prev_calculated for next call return(rates_total); } //+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { if (id==CHARTEVENT_OBJECT_DRAG){ color entrylinecolor=clrBlack; if (ChartGetInteger(0,CHART_COLOR_BACKGROUND,0)==clrBlack){entrylinecolor=clrWhite;} double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Entry",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice; ObjectMove(0, "Entry", 0, Time[0], newprice); ObjectSetInteger(0, "Entry", OBJPROP_SELECTED, true); ObjectCreate(0, "Entry Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Entry Price Label", OBJPROP_TEXT, "Entry: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Entry Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Entry Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Entry Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Entry Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Entry Price Label",OBJPROP_YDISTANCE, 70); ObjectSetInteger(0,"Entry Price Label",OBJPROP_XDISTANCE, 10); currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Take Profit",OBJPROP_PRICE),_Digits-1); newprice=currentlineprice; ObjectMove(0, "Take Profit", 0, Time[0], newprice); ObjectSetInteger(0, "Take Profit", OBJPROP_SELECTED, true); ObjectCreate(0, "Take Profit Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Take Profit Price Label", OBJPROP_TEXT, "TP: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Take Profit Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Take Profit Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_YDISTANCE, 130); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_XDISTANCE, 10); currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Stop Loss",OBJPROP_PRICE),_Digits-1); newprice=currentlineprice; ObjectMove(0, "Stop Loss", 0, Time[0], newprice); ObjectSetInteger(0, "Stop Loss", OBJPROP_SELECTED, true); ObjectCreate(0, "Stop Loss Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Stop Loss Price Label", OBJPROP_TEXT, "SL: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Stop Loss Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Stop Loss Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_YDISTANCE, 100); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_XDISTANCE, 10); } if (id==CHARTEVENT_KEYDOWN) { color entrylinecolor = clrBlack; if (ChartGetInteger(0,CHART_COLOR_BACKGROUND,0)==clrBlack){entrylinecolor=clrWhite;} if (lparam==VK_D) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Entry",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice+10*_Point; ObjectMove(0, "Entry", 0, Time[0], newprice); ObjectSetInteger(0, "Entry", OBJPROP_SELECTED, true); ObjectCreate(0, "Entry Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Entry Price Label", OBJPROP_TEXT, "Entry: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Entry Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Entry Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Entry Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Entry Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Entry Price Label",OBJPROP_YDISTANCE, 70); ObjectSetInteger(0,"Entry Price Label",OBJPROP_XDISTANCE, 10); double chartfixedmax = ChartGetDouble(0,CHART_FIXED_MAX); if (newprice>(chartfixedmax-10)) { ChartSetDouble(0,CHART_FIXED_MAX,newprice+10*_Point); } ChartRedraw(); } if (lparam==VK_C) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Entry",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice-10*_Point; ObjectMove(0, "Entry", 0, Time[0], newprice); ObjectSetInteger(0, "Entry", OBJPROP_SELECTED, true); ObjectCreate(0, "Entry Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Entry Price Label", OBJPROP_TEXT, "Entry: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Entry Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Entry Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Entry Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Entry Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Entry Price Label",OBJPROP_YDISTANCE, 70); ObjectSetInteger(0,"Entry Price Label",OBJPROP_XDISTANCE, 10); ChartRedraw(); } if (lparam==VK_A) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Stop Loss",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice+10*_Point; ObjectMove(0, "Stop Loss", 0, Time[0], newprice); ObjectSetInteger(0, "Stop Loss", OBJPROP_SELECTED, true); ObjectSetInteger(0,"Stop Loss", OBJPROP_COLOR,clrOrange); ObjectCreate(0, "Stop Loss Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Stop Loss Price Label", OBJPROP_TEXT, "SL: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Stop Loss Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Stop Loss Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_YDISTANCE, 100); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_XDISTANCE, 10); double chartfixedmax = ChartGetDouble(0,CHART_FIXED_MAX); if (newprice>(chartfixedmax-10)) { ChartSetDouble(0,CHART_FIXED_MAX,newprice+10*_Point); } ChartRedraw(); } if (lparam==VK_Z) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Stop Loss",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice-10*_Point; ObjectMove(0, "Stop Loss", 0, Time[0], newprice); ObjectSetInteger(0, "Stop Loss", OBJPROP_SELECTED, true); ObjectCreate(0, "Stop Loss Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Stop Loss Price Label", OBJPROP_TEXT, "SL: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Stop Loss Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Stop Loss Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_YDISTANCE, 100); ObjectSetInteger(0,"Stop Loss Price Label",OBJPROP_XDISTANCE, 10); ChartRedraw(); } if (lparam==VK_S) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Take Profit",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice+10*_Point; ObjectMove(0, "Take Profit", 0, Time[0], newprice); ObjectSetInteger(0, "Take Profit", OBJPROP_SELECTED, true); ObjectCreate(0, "Take Profit Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Take Profit Price Label", OBJPROP_TEXT, "TP: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Take Profit Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Take Profit Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_YDISTANCE, 130); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_XDISTANCE, 10); double chartfixedmax = ChartGetDouble(0,CHART_FIXED_MAX); if (newprice>(chartfixedmax-10)) { ChartSetDouble(0,CHART_FIXED_MAX,newprice+10*_Point); } ChartRedraw(); } if (lparam==VK_X) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Take Profit",OBJPROP_PRICE),_Digits-1); double newprice=currentlineprice-10*_Point; ObjectMove(0, "Take Profit", 0, Time[0], newprice); ObjectSetInteger(0, "Take Profit", OBJPROP_SELECTED, true); ObjectCreate(0, "Take Profit Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Take Profit Price Label", OBJPROP_TEXT, "TP: " + DoubleToString(newprice,_Digits-1)); ObjectSetInteger(0, "Take Profit Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Take Profit Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_YDISTANCE, 130); ObjectSetInteger(0,"Take Profit Price Label",OBJPROP_XDISTANCE, 10); ChartRedraw(); } /* if (lparam==VK_F) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Percent Risk",OBJPROP_PRICE),2); double newprice=currentlineprice+0.1; ObjectMove(0, "Percent Risk", 0, Time[0], newprice); ObjectSetInteger(0, "Percent Risk", OBJPROP_SELECTED, true); ObjectCreate(0, "Percent Risk Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Percent Risk Price Label", OBJPROP_TEXT, "% Risk (F/V): " + DoubleToString(newprice,2)+"%"); ObjectSetInteger(0, "Percent Risk Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Percent Risk Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_YDISTANCE, 130); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_XDISTANCE, 10); double chartfixedmax = ChartGetDouble(0,CHART_FIXED_MAX); if (newprice>(chartfixedmax-10)) { ChartSetDouble(0,CHART_FIXED_MAX,newprice+10*_Point); } ChartRedraw(); } if (lparam==VK_V) { double currentlineprice = NormalizeDouble(ObjectGetDouble(0,"Percent Risk",OBJPROP_PRICE),2); double newprice=currentlineprice-0.1; ObjectMove(0, "Percent Risk", 0, Time[0], newprice); ObjectSetInteger(0, "Percent Risk", OBJPROP_SELECTED, true); ObjectCreate(0, "Percent Risk Price Label", OBJ_LABEL, 0, Time[0], newprice); ObjectSetString(0, "Percent Risk Price Label", OBJPROP_TEXT, "% Risk (F/V): " + DoubleToString(newprice,2)+"%"); ObjectSetInteger(0, "Percent Risk Price Label", OBJPROP_COLOR, entrylinecolor); ObjectSetInteger(0, "Percent Risk Price Label", OBJPROP_FONTSIZE, 12); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_CORNER, CORNER_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_ANCHOR, ANCHOR_RIGHT_UPPER); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_YDISTANCE, 130); ObjectSetInteger(0,"Percent Risk Price Label",OBJPROP_XDISTANCE, 10); ChartRedraw(); } */ } if (id==CHARTEVENT_OBJECT_CLICK){ if (sparam=="Calculate"){ double entryprice = ObjectGetDouble(0,"Entry",OBJPROP_PRICE,0); double takeprofitprice = ObjectGetDouble(0,"Take Profit",OBJPROP_PRICE,0); double stoplossprice = ObjectGetDouble(0,"Stop Loss",OBJPROP_PRICE,0); double stoplossdistance; double takeprofitdistance; if (stoplossprice>entryprice){takeprofitdistance=entryprice-takeprofitprice; stoplossdistance=stoplossprice-entryprice;} if (stoplossprice | | submitted by Wetalktrade to u/Wetalktrade [link] [comments] |
| | submitted by Arielkro to spotted [link] [comments] |
| | submitted by Wetalktrade to u/Wetalktrade [link] [comments] |
Download the advanced forex trading platform, MetaTrader 4, at FOREX.com. Try it for free with our free demo trading account. MetaTrader 4 (MT4) is the world’s leading platform for trading the financial markets, and you can download it right here on the Exness website. Traders of all levels and from all four corners of the globe choose MT4 to trade forex and other financial instruments, utilizing its unique features to get the most out of their trading experience. Download MetaTrader 4 PC, iPad, iPhone or Android OS version to get powerful and convenient for technical analysis and online trading on forex. The MetaTrader 4 trading platform is designed for Forex and futures trading. With MetaTrader 4, traders can analyze financial markets, perform advanced trading operations, run trading robots (Expert Advisors) and copy deals of other traders. MetaTrader 4 is a platform for trading Forex, analyzing financial markets and using Expert Advisors. Mobile trading, Trading Signals and the Market are the integral parts of MetaTrader 4 that enhance your Forex trading experience.
[index] [4655] [1936] [686] [2858] [2722] [3563] [1022] [147] [1433] [4570]
DOWNLOAD ROBOT https://mql5.com/8bd1l ===== Download also our FOREX BOT "ForexGumpBot" at the link https... MetaTrader 4 (MT4) is a stand alone platform designed to help you automate your trading. Here is why you should choose IG for your MT4 trading. Subscribe: ... In this video, we're giving you a step-by-step guide on how to log into your MetaTrader 4 (MT4) account once you've downloaded the platform. Comprehensive guide to all the features of MetaTrader 4. You can't trade Forex without knowing your platform. If you want to learn more and get an excellent ... A detailed video explaining how to download and how to use Metatrader 4 charting platform. In this video - 'How To Use Metatrader 4 Tutorial For Beginners' I...