Amibroker Pyramiding Apr 2026
if (Cond1[i]) SetPositionSize(33, spcPercentOfEquity); if (Cond2[i]) SetPositionSize(33, spcPercentOfEquity); if (Cond3[i]) SetPositionSize(34, spcPercentOfEquity);
// First entry signal Buy1 = Cross( C, MA(C, 20) ); // Second entry signal (add more) Buy2 = Cross( C, MA(C, 50) ) AND BarsSince(Buy1) > 0; amibroker pyramiding
Do not use ExRem if you want repeated signals. Instead, use ExRemSpan or manage state manually. 3. Controlling Position Size per Pyramid Level Use SetPositionSize() with the spcPercentOfEquity or spcPercentOfPosition flag inside your buy conditions. if (Cond1[i]) SetPositionSize(33
In , pyramiding refers to adding to an existing position (scaling in) while a trade is still active, rather than closing it and opening a new one. if (Cond2[i]) SetPositionSize(33
// Position sizing per level for (i = 0; i < BarCount; i++)