hi
you need to change magic number
hi
you need to change magic number
Hello,
Here we go to code in fxdreema how to create button for sell and buy on the cahrt
But this only buttuon it will not excute till we provide second tutrial
https://fxdreema.com/shared/yz6G7ViKc
Code
ObjectCreate(0,"button1",OBJ_BUTTON,0,0,0);
ObjectSetInteger(0,"button1",OBJPROP_BGCOLOR,clrBlue);
ObjectSetInteger(0,"button1",OBJPROP_BORDER_COLOR,clrBlue);
ObjectSetInteger(0,"button1",OBJPROP_COLOR,clrWhite);
ObjectSetInteger(0,"button1",OBJPROP_YSIZE,30);
ObjectSetInteger(0,"button1",OBJPROP_XSIZE,100);
ObjectSetInteger(0,"button1",OBJPROP_YDISTANCE,30);
ObjectSetInteger(0,"button1",OBJPROP_XDISTANCE,110);
ObjectSetInteger(0,"button1",OBJPROP_CORNER,CORNER_RIGHT_UPPER);
ObjectSetString (0,"button1",OBJPROP_TEXT,"BUY");
ObjectCreate(0,"button2",OBJ_BUTTON,0,0,0);
ObjectSetInteger(0,"button2",OBJPROP_BGCOLOR,clrBlue);
ObjectSetInteger(0,"button2",OBJPROP_BORDER_COLOR,clrBlue);
ObjectSetInteger(0,"button2",OBJPROP_COLOR,clrWhite);
ObjectSetInteger(0,"button2",OBJPROP_YSIZE,30);
ObjectSetInteger(0,"button2",OBJPROP_XSIZE,100);
ObjectSetInteger(0,"button2",OBJPROP_YDISTANCE,30);
ObjectSetInteger(0,"button2",OBJPROP_XDISTANCE,110);
ObjectSetInteger(0,"button2",OBJPROP_CORNER,CORNER_LEFT_UPPER);
ObjectSetString (0,"button2",OBJPROP_TEXT,"SELL");

0_1602265157829_Create Button (2).mq4 
TUTORIAL(2) EXECUTE BUY AND SELL - 10-OCT-2020
1- first of all you need to know that i define ("button1" for BUY ) and ("button2" for SELL ) and you need to know the operation number for buy is (0) and the operation number for sell is (1)
2- Now you need to know that for operation we need to work On Chart only
i will now give the steps 1 by 1 with screenshot
first steps you need to find ( Mouse clicked on object ) from search

you can notice now i filter by object name and i put in object name button1 because button1 it will linked to buy object
3- now i will linked buy block to mouse clicked ( you need to notice that that execute will work only with fixed lot ( it will not work with other option)

4- i will now select object by name = button1 for ( Buy )

5- Now i need to tell specific button when it is pressed to run my code

6- now i will linked the code

here is the code for buy
ObjectSet(LoadedObjectName(),OBJPROP_STATE,0);
you do same steps for sell button1 to button2 and change the code to
sell code
ObjectSet(LoadedObjectName(),OBJPROP_STATE,1);
here also the project link
https://fxdreema.com/shared/g6sgduqpc
and here is the MQL4 code
0_1602519166431_Create Button_Buy_Sell_Excute (11).mq4
Good luck
In next tutorial i will try to give codes for close all if i got some time
RAMI.KANAWATI
you are mixing here you should not connect 2 output of condition to buy now
This check box is only coded as bool it will not show in the back test
I can feel that no one get the EA as per his required in throw fxdreema i see there is a lot of missing update or we say there is no update at all people here looks they are losing them time this is my feedback only no support and nothing for me i prerfer to learn the programming from beginning is better than to use this bug tool
Thanks
i understood you but this not function you can used in MQL5 codes are you doing coding before
you need seperate code for that you will not find that in fxdreema blocks
Which type of panel you are trying to do is like this 
Hello folks
i want to consult your feedback do we need any more it has to be add ?
i welcome any idea
Thanks to all 
MT4 will work only but ex.4 will not work at all this problem only in ex.4
ex.5 is ok
You need to add constans here not variable