void CheckTradeDirection()
{
if(FunctionAccess=="Allowed"&&TimeAccess=="Allowed")
{
if(CurrentPos>=POS_REQ_QUANT)
{
if(Pos[CurrentPos][RVI_DIFFERENTION]>RVI_UNSAFE_DIFFERENTION)
{
if(SignalBuy==1&&SignalSell==0)
{
if(Pos[CurrentPos][RVI_SIGNAL]<Pos[CurrentPos-4][RVI_MAIN]-(RVI_MID_DIFFERENTION))
{
if(Pos[CurrentPos][RVI_SIGNAL]<Pos[CurrentPos-2][RVI_MAIN]-(RVI_BORDER_DIFFERENTION))
{
if(Pos[CurrentPos][TOTAL_ASK]>Pos[CurrentPos-4][TOTAL_ASK])
{
if(Pos[CurrentPos][VALUE_ASK]>Pos[CurrentPos-2][VALUE_ASK])
{
if(Pos[CurrentPos][TOTAL_CLOSE]>Pos[CurrentPos-4][TOTAL_CLOSE])
{
if(Pos[CurrentPos][VALUE_CLOSE]>Pos[CurrentPos-2][VALUE_CLOSE])
{
TradeSystem=BUY;
}
}
}
}
}
}
}
}
if(Pos[CurrentPos][RVI_DIFFERENTION]>RVI_UNSAFE_DIFFERENTION)
{
if(SignalBuy==0&&SignalSell==1)
{
if(Pos[CurrentPos][RVI_SIGNAL]>Pos[CurrentPos-4][RVI_MAIN]+(RVI_MID_DIFFERENTION))
{
if(Pos[CurrentPos][RVI_SIGNAL]>Pos[CurrentPos-2][RVI_MAIN]+(RVI_BORDER_DIFFERENTION))
{
if(Pos[CurrentPos][TOTAL_BID]<Pos[CurrentPos-4][TOTAL_BID])
{
if(Pos[CurrentPos][VALUE_BID]<Pos[CurrentPos-2][VALUE_BID])
{
if(Pos[CurrentPos][TOTAL_CLOSE]<Pos[CurrentPos-4][TOTAL_CLOSE])
{
if(Pos[CurrentPos][VALUE_CLOSE]<Pos[CurrentPos-2][VALUE_CLOSE])
{
TradeSystem=SELL;
}
}
}
}
}
}
}
}
BlockFunctionAccess();
}
}
else
{
if(Warning=="Show")
{
Alert("FunctionAccess/TimeAccess Blocked 'CheckTradeDirection()'");
}
}
}
this is new code, in 50 percents generate profit, so this is start of profiting lets go evolve this code!
only if is setted up to minutes, and 5 opened positions max
I need to buy and install a Void card for this! :) So many void using...
And if seriously... well, I have something from sAEm opera: "exp_Lego_4", posted in Ru... well, I'll post it here. Already sent to the moderator.
i have found small bug in my code/ this code, so wait i post it here with a edited code to profit!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Universal configurable EA with include indicators inside.:
Author: Pavol