top of page
void TrailStop(string funsym,
double funatr)
{
if(!PositionSelect(funsym))
{
return;
}
double open =
PositionGetDouble(
POSITION_PRICE_OPEN);
double cur =
PositionGetDouble(
POSITION_SL);
double bid =
SymbolInfoDouble(funsym,
SYMBOL_BID);
double want = bid
- funatr * TrailFactor;
if(want > cur
&& want > open)
Shop
Here you will find the programs from our YouTube videos, ready to run on your own MT5 account.
void OnTick()
{
if(!NewBar())
return;
double atr[];
if(CopyBuffer(
hATR, 0, 1, 1,
atr) < 1)
return;
if(Cross(fast,
slow) && adx
> MinADX)
{
OpenLong(Lots(),
atr[0]
* SlFactor);
}
}
// risk per trade
double Lots()
{
return Norm(
Equity()
* RiskPercent);
}
With every purchase, you're supporting more than just your trading. We donate 1% of the revenue from the services and products offered on this website to charity: water to help provide people around the world with access to clean drinking water.

FAQ

bottom of page






