I've got it - I tried to be not confused, if anyone is interested, please ask, we will figure it out together.
I'm still looking for the right way to set them to work.
//+------------------------------------------------------------------+//| Enum Lor or Risk |//+------------------------------------------------------------------+enum ENUM_TRADE_COMMAND
{
Line_Line=0, // Line
Line_buy=1, // Line+Open Buy
Line_sell=2, // Line+Open Sell
close_buys=3, // Close All Buy's
close_sells=4, // Close All Sell's
close_all=5, // Close All Buy's and Sell's
open_buy=6, // Open Buy
open_sell=7, // Open Sell
open_buy_sell=8, // Open Buy and Sell
};
//+------------------------------------------------------------------+
This is where you do the action, which you need to set the logic to
if(main[1]>signal[1])
{
switch(InpTradeCommandY)
{
case Line_Line:
ExtNeedLine=true;
if(Obj_line())
break;
case Line_buy:
ExtNeedOpenBuy=true;
if(LongObjOpened())
ExtNeedLine=true;
if(Obj_line())
break;
case Line_sell:
ExtNeedOpenSell=true;
if(ShortObjOpened())
ExtNeedLine=true;
if(Obj_line())
break;
case close_buys:
ExtNeedCloseBuy=true;
if(LongObjClosed())
break;
case close_sells:
ExtNeedCloseSell=true;
if(ShortObjClosed())
break;
case close_all:
ExtNeedCloseAll=true;
if(LongShortObjClosed())
break;
case open_buy:
ExtNeedOpenBuy=true;
if(LongObjOpened())
break;
case open_sell:
ExtNeedOpenSell=true;
if(ShortObjOpened())
break;
default:
ExtNeedOpenBuySell=true;
if(LongShortObjOpened())
break;
}
PlaySound("ok.wav");
}
if(main[1]<signal[1])
{
switch(InpTradeCommandU)
{
case Line_Line:
ExtNeedLine=true;
if(Obj_line())
break;
case Line_buy:
ExtNeedOpenBuy=true;
if(LongObjOpened())
ExtNeedLine=true;
if(Obj_line())
break;
case Line_sell:
ExtNeedOpenSell=true;
if(ShortObjOpened())
ExtNeedLine=true;
if(Obj_line())
break;
case close_buys:
ExtNeedCloseBuy=true;
if(LongObjClosed())
break;
case close_sells:
ExtNeedCloseSell=true;
if(ShortObjClosed())
break;
case close_all:
ExtNeedCloseAll=true;
if(LongShortObjClosed())
break;
case open_buy:
ExtNeedOpenBuy=true;
if(LongObjOpened())
break;
case open_sell:
ExtNeedOpenSell=true;
if(ShortObjOpened())
break;
default:
ExtNeedOpenBuySell=true;
if(LongShortObjOpened())
break;
}
PlaySound("ok.wav");
}
//---
I can't figure it out - Here, two Horizontal lines, when the price touches the first one, it would be deleted, and here, the second Horizontal line, it would remain.
- I'm poking, I'm poking and I'm not! Both of them are deleted.
I can't figure it out - Here, two Horizontal lines, when the price touches the first one, it would be deleted, and here, the second Horizontal line, it would remain.
- I'm poking, I'm poking and I'm not! Both of them are deleted.
And these lines have different names.
1
2
Maybe I need a different command - this one.
I manually draw a horizontal line, give the name "TOP" and the robot draws it with the same name - how can this be?
2 Horizontal lines with the same name
manually drawn Horizontal line - the robot did not work, but the one it set, worked and removed both Horizontal lines with the same name"TOP"
I can't figure it out - Here, two Horizontal lines, when the price touches the first one, it would be deleted, and here, the second Horizontal line, it would remain.
- I'm poking, I'm poking and I'm not! Both of them are deleted.
And these lines have different names.
1
2
Maybe I need a different command - this one.
It turns out the names are very similar, that's why"TOP" and"TOP G" were deleted
I gave the other names in the settings - now it's deleted as it should be
//+------------------------------------------------------------------+//| Enum Lor or Risk |//+------------------------------------------------------------------+enum ENUM_TRADE_COMMAND
{
Line1_Line1=0, // Line: LOWER
Line2_Line2=1, // Line: TOP
Line_Line=2, // Line: LOWER+Line: TOP
Line1_buys=3, // Line: LOWER+Buy's
Line2_sells=4, // Line: TOP+Sell's
close_buys=5, // Close All Buy's
close_sells=6, // Close All Sell's
close_all=7, // Close All Buy's and Sell's
open_buy=8, // Open Buy
open_sell=9, // Open Sell
open_buy_sell=10, // Open Buy and Sell
};
//+------------------------------------------------------------------+
I've got it - I tried to be not confused, if anyone is interested, please ask, we will figure it out together.
I'm still looking for the right way to set them to work.
This is where you do the action, which you need to set the logic to
I can't figure it out - Here, two Horizontal lines, when the price touches the first one, it would be deleted, and here, the second Horizontal line, it would remain.
- I'm poking, I'm poking and I'm not! Both of them are deleted.
And these lines have different names.
1
2
Maybe we need a different command - this one.
I can't figure it out - Here, two Horizontal lines, when the price touches the first one, it would be deleted, and here, the second Horizontal line, it would remain.
- I'm poking, I'm poking and I'm not! Both of them are deleted.
And these lines have different names.
1
2
Maybe I need a different command - this one.
I manually draw a horizontal line, give the name "TOP" and the robot draws it with the same name - how can this be?
2 Horizontal lines with the same name
manually drawn Horizontal line - the robot did not work, but the one it set, worked and removed both Horizontal lines with the same name"TOP"
I can't figure it out - Here, two Horizontal lines, when the price touches the first one, it would be deleted, and here, the second Horizontal line, it would remain.
- I'm poking, I'm poking and I'm not! Both of them are deleted.
And these lines have different names.
1
2
Maybe I need a different command - this one.
It turns out the names are very similar, that's why"TOP" and"TOP G" were deleted
I gave the other names in the settings - now it's deleted as it should be
I figured it out - it turns out the names are very similar, that's why"TOP" and"TOP G" were deleted
I gave it a different name in the settings - now it's deleted as it should be !
Yes ! It worked ! - It turns out the names of objects should be set that, not to be close to similar
The Expert will execute any commands, your fantasies in one Expert
SETTINGS-
In the tester looked through for errors - well, also the default result
Added more commands
added this
Expert Utility -
Instructions - here is the most important thing to remember.
These lines are drawn if you set(grid step, points("0" -> false)) and also traced (if 0 - will not)
----------------------------------------
Also from the signal indicator - you do not need to download these indicators, which I have attached, you can pick up your own.
Expert Utility -
Instructions - here is the most important thing to remember.
These lines are drawn if you set(grid step, points("0" -> false)) and also traced (if 0 - will not)
----------------------------------------
Also from the signal indicator - you can not download these indicators, which I have attached, you can pick up your own.
One of the settings
settings in .set file
added some commands