• Dutch - Netherlands - Roy's Special Tools
  • French - France - Roy's Special Tools
  • English - United Kingdom - Roy's Special Tools
  • German - Germany - Roy's Special Tools

Amibroker Afl Code -

Good tools are half the work!

At Roy's Special Tools you will find a wide and specialist range of tools for the automotive industry.

In our webshop you can buy the desired tools directly and pay via iDeal. We ensure fast shipping and you will receive your order by post the next working day (if ordered before 5 p.m.).

Do you have any questions or are you looking for a special tool that is not on our website? Please contact us via the contact page.

Amibroker Afl Code -

// Basic price arrays Close, Open, High, Low, Volume, OpenInt // Single value (scalar) vs array x = 10; // scalar y = Close * 0.5; // array (half of closing prices) + - * / % // arithmetic == != < > <= >= // comparison AND OR NOT // logical = // assignment 3. Common Functions Ref(Array, -1) // previous bar value MA(Array, periods) // moving average HHV(High, 10) // highest high last 10 bars LLV(Low, 10) // lowest low last 10 bars Cross(A, B) // crossover Buy = condition; // trading signal Sell = condition; 📈 Indicator Examples Simple Moving Average (SMA) period = 20; SMA20 = MA(Close, period); Plot(SMA20, "SMA 20", colorGreen, styleLine); Plot(Close, "Price", colorBlack, styleCandle); RSI Indicator rsiPeriod = 14; rsi = RSI(rsiPeriod); Plot(rsi, "RSI", colorRed, styleLine); Plot(30, "Oversold", colorBlue, styleDashed); Plot(70, "Overbought", colorBlue, styleDashed); Bollinger Bands periods = 20; stdDev = 2; MA20 = MA(Close, periods); upper = MA20 + stdDev * StDev(Close, periods); lower = MA20 - stdDev * StDev(Close, periods); Plot(Close, "Price", colorBlack, styleCandle); Plot(MA20, "MA20", colorRed, styleLine); Plot(upper, "Upper", colorGreen, styleLine); Plot(lower, "Lower", colorGreen, styleLine); 📊 Trading System (Backtest) Simple Moving Average Crossover // Parameters fastMA = 10; slowMA = 30; // Indicators maFast = MA(Close, fastMA); maSlow = MA(Close, slowMA);

// Entry conditions Buy = Cross(macd, signal) AND rsi < rsiOS; Sell = Cross(signal, macd) OR rsi > rsiOB; amibroker afl code

Buy = Cross(oversold, rsi); // RSI rises above 30 Sell = Cross(rsi, overbought); // RSI falls below 70 // Basic price arrays Close, Open, High, Low,

Buy = Cross(maFast, maSlow); Sell = Cross(maSlow, maFast); Buy = Cross(maFast, maSlow); Sell = 0; // Apply stops stopLossPct = 2; targetPct = 5; // Basic price arrays Close

ApplyStop(stopTypeLoss, stopModePercent, stopLossPct, True); ApplyStop(stopTypeProfit, stopModePercent, targetPct, True); SetPositionSize(2, spsPercentOfEquity); // 2% risk per trade SetOption("MaxOpenPositions", 5); SetOption("CommissionMode", 1); // per share SetOption("CommissionAmount", 0.01); // $0.01 per share 🧪 Complete Example: MACD + RSI Strategy // MACD parameters fastMACD = 12; slowMACD = 26; signalMACD = 9; // RSI parameters rsiPeriod = 14; rsiOB = 70; rsiOS = 30;

Contact via Whatsapp

This website works best if you accept cookies for social media and statistics.