pluginplug.io

Amibroker - Pyramiding

// Combine signals Buy = Buy1 OR Buy2;

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. amibroker pyramiding

// Position sizing per level for (i = 0; i < BarCount; i++) // Combine signals Buy = Buy1 OR Buy2;

if (Cond1[i]) SetPositionSize(33, spcPercentOfEquity); if (Cond2[i]) SetPositionSize(33, spcPercentOfEquity); if (Cond3[i]) SetPositionSize(34, spcPercentOfEquity); i++) if (Cond1[i]) SetPositionSize(33

// First entry signal Buy1 = Cross( C, MA(C, 20) ); // Second entry signal (add more) Buy2 = Cross( C, MA(C, 50) ) AND BarsSince(Buy1) > 0;

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.

Account

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

NO REGISTRATION NEEDED

You're new here? No problem, just log in with your email and we will automatically create a free account for you. We will send you a secure login link to your email.