سکان نسخه‌ی 1.0.0

راهنمای سکان

سکان کنار چارتت روی متاتریدر ۵ می‌شینه. استاپ رو روی چارت می‌ذاری، سکان حجم رو حساب می‌کنه، معامله رو می‌فرسته و تا بسته شدن مدیریتش می‌کنه. نگهبانش هم سقف‌هایی رو که خودت گذاشتی نگه می‌داره.

  • همه‌ی امکانات بازنه کدی می‌خواد نه لایسنسی
  • متاتریدر ۵این بسته مال همینه
  • دو ظاهرکلاسیک و مدرن، یک موتور
پنل کلاسیک سکان، تب معامله
کلاسیک، Sokan
پنل مدرن سکان با یک معامله‌ی باز
مدرن، SokanNew

۱نصب

این بسته فقط مال متاتریدر ۵ هست و دو فایل داره: Sokan.ex5 و SokanNew.ex5. اون یکی متاتریدر بسته‌ی جدای خودش رو داره.

  1. زیپ رو باز کن. در متاتریدر برو به File → Open Data Folder؛ پوشه‌ی داده‌ی همین متاتریدر باز می‌شه.
  2. پوشه‌ی MQL5\Experts رو باز کن و دو فایل پوشه‌ی Experts بسته رو همون‌جا کپی کن.
  3. متاتریدر رو ببند و باز کن و Ctrl+N رو بزن. زیر Expert Advisors باید Sokan و SokanNew رو ببینی. اگه نبودن، روی فهرست راست‌کلیک کن و Refresh رو بزن.
  4. دکمه‌ی Algo Trading رو در نوار بالای متاتریدر روشن کن.
  5. یکی از دو تا رو روی چارت بکش. در پنجره‌ای که باز می‌شه، در تب Common تیک Allow Algo Trading رو بزن. در تب Inputs، گزینه‌ی زبان پنل رو روی Farsi / فارسی بذار تا پنل فارسی بشه؛ پیش‌فرضش English هست.

راه کوتاه‌تر: متاتریدر رو ببند و روی install.cmd دو بار کلیک کن؛ همین کپی رو خودش انجام می‌ده. اگه نوشت COULD NOT COPY یعنی متاتریدر هنوز بازه؛ ببندش و دوباره بزن.

۲کلاسیک یا مدرن

سکان دو ظاهر داره روی یک موتور. ریسک، نگهبان، خروج‌ها و ثبت در هر دو یکیه و تنظیم‌هات روی این کامپیوتر بینشون مشترکه. هر کدوم رو خواستی روی چارت بکش، ولی روی هر چارت فقط یکی.

کلاسیک، Sokan

همون پنل آشنا: قیمت خرید و فروش بالا، دو تب معامله و مدیریت، و بخش‌هایی که با کلیدهای بالای هر تب باز و بسته می‌شن. در تب معامله: طرح، ریسک، استاپ، تارگت، حجم و ورود. در تب مدیریت: حساب، بستن، یکجا و پوزیشن. چرخ‌دنده سه صفحه‌ی طرح، نگهبان و عمومی رو باز می‌کنه.

مدرن، SokanNew

سربرگ با سه تب معامله، مدیریت و عمومی. کارت طرح جمع می‌شه به اسم طرح و سه برچسب (ریسک، نوع استاپ، تارگت) و با فلشش باز می‌شه به همون شش بخش. معامله که باز شد کارتش بالای تب میاد، بسته که شد کارت «تازه بسته شد»، و روز که قفل شد کارت روز قفل است. ناحیه‌ی ریسک و سود هم روی خود چارت کشیده می‌شه.

نوار بودجه‌ی روز

زیر عنوان، در هر دو ظاهر، یه نوار باریکه: چقدر از سقف ضرر امروز رفته و چند معامله از سقف امروز گذشته. نوار از ۶۰ درصد کهربایی می‌شه و سر سقف سرخ. عددهاش مال خود نگهبانه. اگه نگهبان خاموش باشه، همون‌جا نوشته نگهبان خاموش است.

کلید — بالای پنل، پنل رو یک ردیف می‌کنه: سود باز، تعداد پوزیشن‌های باز، و دو کلید سربه‌سر و همه. با فلش کنارش برمی‌گرده.

سربرگ پنل کلاسیک با نوار بودجه‌ی روز
نوار بودجه: ضرر امروز و تعداد معامله‌ها.
پنل جمع‌شده در یک ردیف
پنل جمع‌شده.

۳اولین معامله

۱. خط‌ها رو بذار

اگه خطی روی چارت نیست، خط بگذار رو بزن. خط قرمز استاپه؛ با ماوس بکشش هرجا که باید باشه. خط سبز تارگته. پنل همین رو می‌گه: بعد خط قرمز را بکش هرجا استاپ باید باشد.

راه کوتاه‌تر: زیر استاپ را کجا بگذارم یکی از کندل، ATR یا سوئینگ رو بزن. استاپ می‌ره پشت آخرین کندل، به فاصله‌ی ATR، یا پشت آخرین سوئینگ؛ اگه خط‌ها نبودن، خودشون میان.

بردار خط‌ها رو برمی‌داره.

دکمه‌ی خط بگذار در پنل کلاسیک
وقتی خطی روی چارت نیست.

۲. ریسک رو انتخاب کن

زیر ریسک هر معامله دو عدد آماده هست، 0.5% و 1%، و یه خونه برای عدد خودت: روش بزن، عدد رو بنویس و Enter بزن.

واحدش رو سه کلید %، $ و لات تعیین می‌کنن؛ همون که روشنه در کاره. کلید $ با پول حسابت کار می‌کنه و اگه حسابت دلاری نباشه، کد پول حساب روش نوشته می‌شه. واحد رو که عوض کنی همون ریسک به واحد تازه گفته می‌شه. اگه نشه، واحد همون که بود می‌مونه و پنل دلیلش رو می‌گه.

ردیف ریسک هر معامله و سه کلید واحد
ریسک هر معامله و سه کلید واحد.

۳. تارگت

زیر تارگت یکی از 1R یا 2R رو بزن، یا عدد خودت رو بنویس: هر چیزی بین 0.25R تا 20R. صفر یعنی بی‌تارگت.

۴. نگاه کن، بعد بزن

پنل می‌گه حجم، ریسک و اگر بخورد، یعنی اگه تارگت بخوره چقدر می‌بری. اگه خوب بود خرید یا فروش رو بزن.

عدد ریسک معمولاً یه کم کمتر از چیزیه که خواستی. عمدیه: حجم از بدترین قیمت ممکن حساب می‌شه تا لغزش نتونه ریسکت رو از اون چیزی که گفتی بیشتر کنه.

اگه استاپ بالای قیمت باشه و خرید رو بزنی، سکان نمی‌فرسته و می‌گه استاپ بالای قیمت است، پس این یک فروش است. برعکسش هم همین‌طور.

در ظاهر مدرن، ناحیه‌ی سرخ از ورود تا استاپ و ناحیه‌ی سبز تا تارگت پشت کندل‌ها کشیده می‌شه و با خط‌ها جابه‌جا می‌شه. ظاهر کلاسیک ناحیه نمی‌کشه.

رنگ ناحیه‌ها خودش با پس‌زمینه‌ی چارت جور می‌شه: روی چارت روشن کم‌رنگ، روی چارت تیره پررنگ. رنگ دیگه‌ای می‌خوای؟ تو پنجره‌ی تنظیمات سکان، رنگ ناحیه‌ی ضرر، سود و سود قفل‌شده رو عوض کن.

ناحیه‌ی ریسک و سود روی چارت
ناحیه‌ها روی چارت واقعی، پیش از معامله. خط سرخ استاپه.

سفارش منتظر

اگه می‌خوای معامله روی یه قیمت دیگه پر بشه، پندینگ رو بزن. خط ورود میاد؛ بکشش همون جایی که می‌خوای پر بشه، بعد خرید یا فروش. سفارش روی خطت منتظر می‌مونه و یه ردیف در انتظار با کلید لغو نشونش می‌ده. بازار برمی‌گرده به خرید و فروش با قیمت بازار.

طرح، ستاپ و حس

یک، دو یا سه طرح نگه می‌داری؛ صفحه‌ی طرح می‌پرسه چند تا، و نصب تازه با یکی شروع می‌شه. هر طرح ریسک، سربه‌سر، تریل و پله‌های بستن رو با هم نگه می‌داره؛ یکی رو که بزنی، معامله‌ی بعدی با اون گرفته می‌شه و پوزیشن‌های باز دست نمی‌خورن. در صفحه‌ی اصلی مدرن یه طرح فقط یه خط باریکه با ریسک، استاپ و تارگتش، و دو یا سه طرح یه کلید باریکه که همون خط زیرشه. تنظیم هر طرح در صفحه‌ی طرح انجام می‌شه و این صفحه با مداد باز می‌شه.

زیر طرح‌ها دو کلید ستاپ و حس هست. هر بار زدن، اسم بعدی از فهرست خودت رو می‌ذاره. ستاپ یادش می‌مونه؛ حس فقط با همون معامله می‌ره. هر دو در شیت روز نوشته می‌شن و هیچ‌کدوم جلوی معامله رو نمی‌گیره.

کارت سفارش در انتظار در ظاهر مدرن
یک سفارش منتظر، با کلید لغو.

۴مدیریت معامله

کارت معامله‌ی باز (مدرن)

معامله که باز شد، کارتش بالای تب معامله میاد: جهت و حجم، چند تا بازه، R زنده، پول، و یه نوار که از استاپ (-1R) تا تارگت می‌ره و جای قیمت رو نشون می‌ده. زیرش قیمت استاپ و حال تریل، و سه کلید سربه‌سر، نصف و ببند.

وقتی چند معامله با هم بازه، کارت جمع همه‌شون رو بالا می‌نویسه و زیرش هر معامله یه ردیف داره، چون اون سه کلید روی همه‌شون کار می‌کنن. جمع و ردیف‌ها هر دو بعد از کمیسیون حساب می‌شن.

کارت طرح و دکمه‌های خرید و فروش زیرش می‌مونن؛ چیزی پنهان نمی‌شه.

کارت معامله‌ی باز در ظاهر مدرن
کارت معامله‌ی باز.
کارت مدرن با چند معامله‌ی باز
چند معامله با هم: جمع بالا، هر معامله یه ردیف.
ناحیه‌ها روی چارت با یک معامله‌ی باز
همون معامله روی چارت.

نوار مدیریت سریع (کلاسیک)

در کلاسیک، تا پوزیشنی بازه، پایین تب معامله سه کلید میاد: سربه‌سر، نصف و ببند. این سه روی همه‌ی پوزیشن‌هایی کار می‌کنن که سکان روی نماد همین چارت باز کرده؛ وقتی بیشتر از یکی بازه، روشون نوشته هر 3.

ببند دو بار زدن می‌خواد: بار اول می‌پرسه، و اگه تا سه ثانیه دوباره زدی می‌بنده. دو کلیک خیلی تند پشت هم یه بار حساب می‌شه.

سربه‌سر هیچ‌وقت استاپی رو که از ورود جلوتر رفته عقب نمی‌کشه. بعد از هر کدوم، پنل چند ثانیه می‌گه چی شد، مثلاً 2 از 3 بسته شد، و اگه بروکر یکی رو رد کرد، دلیلش رو.

نوار مدیریت سریع و سؤال طبق طرحت بود در پنل کلاسیک
نوار سریع، و سؤال بعد از بسته شدن.

تب مدیریت

بالاش موجودی، اکوییتی و سود باز حساب. بعد دو کلیدی که همه‌چیز رو نگه می‌دارن:

  • همه همه‌ی پوزیشن‌های سکان روی این نماد رو می‌بنده، ولی دو بار زدن می‌خواد. بار اول زرد می‌شه و می‌پرسه؛ اگه تا سه ثانیه دوباره زدی می‌بنده، و هر کلید دیگه‌ای سؤال رو پس می‌گیره. در مدرن اسمش همه را ببند هست و می‌پرسه مطمئنی؟ 6 تا، با لغو کنارش. دو کلیک خیلی تند یه بار حساب می‌شه.
  • بستن روز دو بار زدن می‌خواد. پوزیشن‌های باز رو می‌بنده، سفارش‌های منتظر رو پاک می‌کنه و روز رو تا مرز روز بعد قفل می‌کنه. این تنها کلیدیه که برگشت نداره.

بعد بستن به دسته: برنده‌ها، بازنده‌ها، خریدها، فروش‌ها؛ و سربه‌سر و نصف همه برای همه. ته تب، هر پوزیشن یه ردیف داره با ببند، نصف و سربه‌سر خودش.

تب مدیریت ظاهر مدرن وقتی همه را ببند منتظر جواب است
مدرن: «همه را ببند» منتظر بار دوم.

تازه بسته شد (مدرن)

معامله که بسته شد، کارتش یه دقیقه بالای تب می‌مونه: چطور بسته شد (با تارگت بسته شد، با استاپ بسته شد، سربه‌سر بسته شد، خودت بستی، نگهبان بستش یا بروکر بستش)، R کل معامله با هر تکه‌ای که وسط راه بسته شده، پول، و چقدر باز بود.

همون‌جا می‌پرسه طبق طرحت بود؟ با آره و نه. در کلاسیک همین سؤال در نوار پایین پنله. جوابت در ستون to plan شیت روز می‌ره. تا ۹۰ ثانیه یا تا بسته شدن بعدی منتظر می‌مونه و جلوی هیچ معامله‌ای رو نمی‌گیره. کلید روشن و خاموشش در تب عمومیه.

کارت تازه بسته شد در ظاهر مدرن
کارت «تازه بسته شد».

خروج‌هایی که سکان خودش می‌کنه

در صفحه‌ی طرح هر طرح: سربه‌سر در (استاپ کِی بره روی ورود)، تریل (با ATR، پیپ، کندل یا شمعدانی، و شروع از کِی شروع کنه)، و پله‌ها (تا سه تکه، هر کدوم یه درصد روی یه R). هر کدوم کلید روشن و خاموش خودش رو داره.

خبر

اگه هشدار پیش از خبر در تب عمومی روشن باشه، ۱۵، ۱۰ و ۵ دقیقه پیش از هر خبر مهم ارزهای این نماد، یه خط خبر مهم تا 15 دقیقه‌ی دیگر میاد و هر بار ۳۰ ثانیه می‌مونه. در مدرن، وقتی معامله بازه، کارت زردش زیر کارت معامله میاد.

کارت خبر زیر کارت معامله در ظاهر مدرن
خبر مهم، با معامله‌ی باز.

۵نگهبان و قفل روز

نگهبان سقف‌هایی رو نگه می‌داره که خودت گذاشتی. پیش‌فرض خاموشه؛ پیش از روشن کردن، سقف‌هاش رو با دقت بذار، چون تنظیم اشتباه یعنی وسط روز قفل بشی. صفحه‌اش در چرخ‌دنده، نگهبان ـه.

هر ردیف یه کلید روشن و خاموش داره و یه عدد:

  • ضرر امروز: درصد ضرر امروز. و ضرر پولی همین سقف به پول حساب.
  • تعداد معامله، باخت پیاپی و تی‌پی زده: چند معامله، چند باخت پشت هم، چند تارگت در روز.
  • سود امروز: درصد سود امروز که بعدش بسه.
  • ضرر کل از: درصد ضرر از سرمایه اول یا از بالاترین.
  • ریسک شناور: سقف ریسک همه‌ی پوزیشن‌ها و سفارش‌های منتظر با هم.
  • ساعت معامله: از چه ساعتی تا چه ساعتی، به وقت سرور. فیلتر خبر: چند دقیقه قبل از خبر مهم ورود بسته می‌شه، و تا ده دقیقه بعدش هم بسته می‌مونه. کلیدش فیلتر رو روشن یا خاموش می‌کنه.
  • اندازه‌گیری روی: اکوییتی یا بالانس.

کل نگهبان یه کلید داره، پایین صفحه: نگهبان روشن است یا نگهبان خاموش است.

صفحه‌ی نگهبان
صفحه‌ی نگهبان.

قفل روز

دو جور سقف هست و کارشون فرق داره:

  • سقف ضرر (ضرر امروز، ضرر پولی، ضرر کل): سکان پوزیشن‌هایی رو که روی همین نماد باز کرده می‌بنده و روز رو قفل می‌کنه.
  • شمارش، ساعت یا تارگت روز: فقط معامله‌ی تازه گرفته نمی‌شه؛ چیزی که بازه با استاپ خودش می‌مونه.

روز قفل، خرید و فروش کم‌رنگ می‌شن و نوار پایین دلیلش رو می‌گه، مثلاً قفل، ضرر امروز 212.50 از 200.00. در مدرن کارت روز قفل است بالای تب میاد با معامله‌های باز را هنوز می‌توانی ببندی. روز سر مرز روز باز می‌شه؛ این مرز ساعتیه که در DayBoundaryHour گذاشتی، به وقت سرور.

کارت روز قفل است در ظاهر مدرن
کارت «روز قفل است».

۶تب عمومی

در کلاسیک چرخ‌دنده رو بزن و بعد عمومی؛ در مدرن تب عمومی سربرگ. برگرد برمی‌گرده به پنل.

  • عکس چارت: از هر ورود، هر خروج و هر دست‌بردن (جابه‌جایی استاپ و تارگت، بستن تکه‌ای با دست) یه عکس از چارت. پیش‌فرض روشنه. هر معامله در پوشه‌ی ستاپ خودش، و بی‌ستاپ‌ها در No Setup. جای عکس‌ها می‌گه کجاست؛ متاتریدر بیرون از اون پوشه نمی‌نویسه.
  • معامله‌های روز، در اکسل: هر معامله‌ی بسته یه ردیف، خودکار، هر روز، با اینکه تا چند R جلو رفت (تا تی‌پی 6).
  • اندازه پنل: از 80% تا 140%. روی عدد بزن، بنویس و Enter بزن.
  • تایمر کندل: زمان مونده‌ی کندل کنار خودش.
  • هشدار تلگرام: با وصل کن وصل می‌شه؛ فصل بعد.
  • دکمه‌های ستاپ و حس، بپرس طبق طرحت بود؟ و هشدار پیش از خبر: سه کلید روشن و خاموش برای کارهایی که بالاتر گفتیم.
  • لیست‌های تو با ویرایش: اسم ستاپ‌ها و حس‌هات. هر فهرست شش اسم داره. روی اسم بزن تا عوضش کنی؛ خالی یعنی حذف، و + اضافه می‌کنه.
  • چک‌لیست با ویرایش: خط‌هایی که قبل از معامله چک می‌کنی، حداکثر پنج‌تا. پیش‌فرض خاموشه. وقتی خط‌ها روی چارته بالای دکمه‌های خرید و فروش میان و با یه زدن تیک می‌خورن. جلوی معامله رو نمی‌گیره؛ فقط تعداد تیک‌ها، مثل 4 of 5، با معامله توی فایل روز ثبت می‌شه.
صفحه‌ی عمومی
صفحه‌ی عمومی.
نمای لیست‌های تو
لیست‌های تو.
چک‌لیست
چک‌لیست و خط‌هاش.

۷هشدار تلگرام

سکان می‌تونه چند لحظه‌ی مهم رو روی گوشیت بگه، با ربات @retradeappbot. تا وصل نکردی، هیچ چیزی بیرون نمی‌ره.

  1. اول نشانی https://backtest.arzoapp.ir رو در Allow WebRequest for listed URL مجاز کن (فصل نصب).
  2. در تب عمومی، جلوی هشدار تلگرام، وصل کن رو بزن. یه QR میاد.
  3. با دوربین گوشی اسکنش کن. تلگرام ربات رو باز می‌کنه؛ اونجا Start رو بزن.
  4. برگرد سراغ پنل و «شروع» را زدم رو بزن. سکان از سرور می‌پرسه؛ فقط وقتی سرور بگه آره، پنل می‌گه وصل شد؛ چهار هشدار روشن است.
نمای وصل کردن تلگرام با QR
QR تو روی پنل خودته؛ این یکی عمداً تار شده.

شش کلید هشدار

بعد از وصل شدن، شش کلید داری: قفل شدن روز، 80% سقف ضرر روز، بسته شدن معامله، پر شدن سفارش منتظر، خبر، وقتی معامله باز است و خلاصه‌ی روز. چهار تای اول خودشون روشن می‌شن؛ خبر و خلاصه رو خودت روشن کن. هر کدوم رو هر وقت خواستی خاموش کن.

خلاصه روزی یه بار میاد، وقتی روز تموم می‌شه، برای کل حساب: همه‌ی نمادها و همه‌ی چارت‌ها، یه پیام و نه یکی برای هر چارت. می‌گه چند معامله بسته شد و چند تا مثبت و چند تا منفی بود، هیچ مبلغی نه؛ روزی که معامله‌ای نداشتی چیزی نمیاد.

چی بیرون می‌ره: فقط نماد، R، دلیل و ساعت. شماره‌ی حساب و موجودی بیرون نمی‌رود. قفل روز و ۸۰ درصد فقط اسم قانون رو می‌گن، بی هیچ مبلغی.

قطع کن جفت رو قطع می‌کنه: یه پیام امضاشده به سرور می‌ره و از اون لحظه چیزی به گوشی نمی‌رسه.

شش کلید هشدار تلگرام
شش کلید هشدار.

۸کلید فانوس

فانوس یه برنامه‌ی جدای ویندوزه، پولی، که فایل‌هایی رو که سکان روی این کامپیوتر می‌نویسه می‌خونه و تحلیل می‌کنه. سکان بدون اون کامل کار می‌کنه.

کلید فانوس با باز کن ته صفحه‌ی عمومی فقط وقتی دیده می‌شه که فانوس روی همین کامپیوتر نصب باشه. زدنش فانوس رو روی صفحه‌ی همین حساب باز می‌کنه، یا اگه بازه جلو میاره. اگه تا دو ثانیه جواب نیاد، پنل می‌گه فانوس را از منوی استارت باز کن.

یه ردیف باریک بالای نوار پایین پنل معامله‌های بسته‌شده‌ی سکان رو تا ۲۰ تا می‌شمره، با یه نوار پیشرفت. فانوس با همین ۲۰ معامله تحلیل رو شروع می‌کنه، و هفت روز امتحان رایگانش هم از همون‌جا باز می‌شه. سر ۲۰ ردیف می‌گه فانوس آماده‌ست.

کلید فانوس ته صفحه‌ی عمومی
فقط وقتی فانوس نصبه.

۹تنظیم‌های پنجره‌ی ورود

این‌ها در تب Inputs پنجره‌ای هستن که موقع کشیدن سکان روی چارت باز می‌شه. هر عددی که اینجا نیست روی خود پنله و بدون برداشتن سکان از چارت عوض می‌شه.

اسمپیش‌فرضچی کار می‌کنه
LanguageEnglishزبان پنل: English یا Farsi / فارسی.
RiskAmountSK_IN_D_RISKدرصد ریسک هر معامله وقتی سکان اولین بار روی این کامپیوتر بالا میاد. بعدش روی پنل عوض کن.
Magic770001شماره‌ای که سکان معامله‌هاش رو باهاش می‌شناسه. دستش نزن، مگه اینکه دو سکان روی یک نماد بخوای.
BreakEvenSK_IN_D_BEسربه‌سر، روشن یا خاموش، در شروع. عددش روی پنله.
TrailOnSK_IN_D_TRAILتریل، روشن یا خاموش، در شروع.
PartialsOnSK_IN_D_PARTIALSپله‌های بستن، روشن یا خاموش، در شروع.
GuardOnSK_IN_D_GUARDنگهبان، روشن یا خاموش، در شروع.
DailyLossMoney0.0سقف ضرر روز به پول حساب، برای پراپ‌هایی که سقف رو این‌طوری می‌گن. صفر یعنی خاموش. روی پنل هم هست (ضرر پولی).
NewsFilterSK_IN_D_NEWSفیلتر خبر نگهبان در شروع: نزدیک خبر مهم معامله‌ی تازه نه. تقویم خبر لازم داره، که سکان خودش می‌گیره.
TradingHoursSK_IN_D_HOURSفقط در ساعت‌هایی که روی پنل گذاشتی معامله‌ی تازه.
DailyEmailfalseخلاصه‌ی روز رو با ایمیل خود متاتریدر بفرسته. ایمیل باید در Tools → Options → Email تنظیم شده باشه.
PledgeDays1شل کردن نگهبان چند روز صبر کنه. صفر یعنی بی‌صبر. عمداً روی پنل نیست.
DayBoundaryHour0ساعت سرور که روز تازه از اون شروع می‌شه، برای نگهبان و شیت روز.
LossZoneColorclrNONEرنگ ناحیه‌ی ضرر روی چارت. None یعنی خودکار: روی چارت روشن کم‌رنگ، روی چارت تیره پررنگ.
ProfitZoneColorclrNONEرنگ ناحیه‌ی سود روی چارت. None یعنی خودکار.
KeptZoneColorclrNONEرنگ سودی که استاپ قفلش کرده (بعد از سربه‌سر یا تریل). None یعنی خودکار.

۱۰فایل‌هایی که سکان می‌نویسه

همه در پوشه‌ی مشترک همه‌ی متاتریدرهای این کامپیوتر: در ویندوز بنویس %APPDATA%\MetaQuotes\Terminal\Common\Files\Sokan و Enter بزن. شماره‌ی حسابت در اسم فایل‌هاست.

فایلچیه
sheet_<account>.csvشیت روز: هر معامله‌ی بسته یه ردیف، با ستاپ، حس و جواب «طبق طرحت بود؟». در اکسل باز می‌شه.
journal_<account>.csvدفتر کامل: هر ورود، هر دست‌بردن، هر بستن.
events_<account>.csvرخدادها: روشن و خاموش شدن، تنظیم عوض‌شده، سفارش ردشده با دلیلش.
entries_<account>.csvحال حساب و بازار در لحظه‌ی هر ورود.
path_<account>.csvمسیر قیمت هر معامله از ورود تا بستن.
setup.csv، templates.csv، plancount.txtتنظیم‌های پنل، طرح‌هات و این‌که چند تا طرح نگه می‌داری. مال خود سکانه؛ دستشون نزن.

عکس‌ها در پوشه‌ی خود همون متاتریدرن: File → Open Data Folder، بعد MQL5\Files\Sokan\shots، یه پوشه برای هر ستاپ. یه نسخه‌شون هم در Common\Files\Sokan\shots کنار بقیه می‌ره.

۱۱وقتی چیزی درست کار نمی‌کنه

اگه سکان کاری رو نکرد، دلیلش رو در نوار پایین پنل می‌نویسه. اینا پیام‌هایی هستن که ممکنه ببینی، همون‌طور که روی پنل میان:

معامله مجاز نیست، در ویژگی‌های سکان تیک بزن

تیک Allow Algo Trading سکان رو نزدی. تیکش رو بزن.

دکمه‌ی AutoTrading خاموش است، روشنش کن

متاتریدر کل معامله‌ی خودکار رو بسته. دکمه‌ی Algo Trading رو روشن کن.

حساب نتینگ است؛ سکان حساب هجینگ می‌خواهد

حساب نتینگ داری. از بروکرت حساب هجینگ بگیر.

سکان روی این نماد معامله نمی‌کند

متاتریدر مشخصات این نماد رو درست نمی‌ده. دلیل دقیقش در تب Experts پنجره‌ی Toolbox هست (Ctrl+T). چارت رو یه بار ببند و باز کن، یا نماد دیگه‌ای امتحان کن.

اول استاپ را روی چارت بگذار، بدون آن ریسکی نیست

بدون استاپ R معنی نداره و سکان حجم رو حساب نمی‌کنه. خط بگذار رو بزن.

استاپ بالای قیمت است، پس این یک فروش است

دکمه‌ی اشتباه رو زدی، یا استاپ طرف اشتباهه. خط قرمز رو بکش یا دکمه‌ی دیگه رو بزن.

سقف ریسک شناور پر است

پوزیشن‌ها و سفارش‌های منتظر با هم به ریسک شناور نگهبان رسیدن. اگه حجم فقط کوچیک شده باشه، پیام اینه: کوچک شد تا زیر سقف ریسک شناور بماند.

پوزیشنی بی‌استاپ باز است، جایی نمانده

تا وقتی یه پوزیشن بی‌استاپ بازه، ریسک شناور قابل شمردن نیست و معامله‌ی تازه گرفته نمی‌شه. روی اون پوزیشن استاپ بذار.

فقط 60% آنچه خواستی، پله‌ی لات درشت است

کوچیک‌ترین قدم حجم این نماد درشته و سکان به سمت کمتر گرد کرده. عدد جلوی «فقط» هر بار حساب می‌شه. اگه تا سقف حجم بروکر بالا رفت اومد، حجم به سقف بروکر رسیده.

بازار بسته است

وقتی بروکر سفارشی رو رد کنه، پنل دلیل خود بروکر رو می‌گه، به فارسی، مثل همین یکی یا مارجین آزاد کافی نیست. برای سفارش منتظر اولش اسم سفارش میاد، مثل BUY LIMIT رد شد:. جمله‌ی انگلیسی و شماره‌ی خطای بروکر در تب Experts می‌مونه.

تقویم خبر نیست، ربات رو در آپشن‌ها مجاز کن

سکان تقویم خبر رو نتونسته بگیره، یا اونی که داره قدیمیه. نشانی https://backtest.arzoapp.ir رو در Allow WebRequest for listed URL مجاز کن. سکان خودش دوباره امتحان می‌کنه.

قفل، ضرر امروز 212.50 از 200.00

نگهبان روز رو قفل کرده و دلیلش رو می‌گه. تا مرز روز بعد معامله‌ی تازه گرفته نمی‌شه. پوزیشن‌های باز رو هنوز می‌تونی ببندی.

ثبت ذخیره نمی‌شود؛ اکسل باز است؟

یکی از فایل‌های سکان، معمولاً شیت روز، در اکسل بازه و قفل شده. اکسل رو ببند. سکان هر ثانیه دوباره امتحان می‌کنه و چیزی گم نمی‌شه؛ معامله هم هیچ‌وقت منتظر ثبت نمی‌مونه.

در آن واحد خیلی کوچک می‌شود، واحد عوض نشد

ریسکت در واحد تازه از کوچیک‌ترین حجم کمتر می‌شه. اگه هنوز چیزی برای حساب نیست، اول خط‌ها را بگذار اومد، اول خط‌ها رو بذار تا لات قابل حساب باشه.

ربات جواب نداد؛ نشانی‌اش را مجاز کن

نشانی https://backtest.arzoapp.ir در فهرست Allow WebRequest for listed URL نیست، یا اینترنت قطعه. در تب Experts یه خط از سکان دلیلش رو با شماره‌ی خطا می‌گه.

ربات هنوز «شروع» تو را ندیده

در تلگرام هنوز Start رو در ربات نزدی، یا QR رو با گوشی دیگه‌ای اسکن کردی. اول Start رو بزن، بعد دوباره «شروع» را زدم.

فانوس را از منوی استارت باز کن

فانوس تا دو ثانیه جواب نداد. از منوی استارت ویندوز بازش کن.

Sokan version 1.0.0

The Sokan guide

Sokan sits beside your chart in MetaTrader 5. You put the stop on the chart, Sokan works out the size, sends the trade and manages it until it closes. Its guard keeps the limits you set yourself.

  • Everything unlockedno code, no licence
  • MetaTrader 5this package is for it
  • Two facesclassic and modern, one engine
The classic Sokan panel, Trade tab
Classic, Sokan
The modern Sokan panel with a trade open
Modern, SokanNew

1Install

This package is for MetaTrader 5 only and holds two experts: Sokan.ex5 and SokanNew.ex5. The other MetaTrader has its own package.

  1. Unzip the package. In MetaTrader open File → Open Data Folder; this MetaTrader's data folder opens.
  2. Open MQL5\Experts and copy the two files from the package's Experts folder into it.
  3. Close and reopen MetaTrader and press Ctrl+N. Under Expert Advisors you should see Sokan and SokanNew. If not, right-click the list and choose Refresh.
  4. Switch on Algo Trading in the MetaTrader toolbar.
  5. Drag one of the two onto a chart. In the window that opens, tick Allow Algo Trading on the Common tab. On the Inputs tab, Panel language sets the panel language; it starts in English.

A shorter way: close MetaTrader and double-click install.cmd; it makes the same copy. If it says COULD NOT COPY, MetaTrader is still open; close it and run it again.

2Classic or modern

Sokan has two faces on one engine. Risk, the guard, the exits and the records are the same in both, and your settings are shared between them on this computer. Put either on a chart, but only one per chart.

Classic, Sokan

The familiar panel: the prices on top, two tabs, Trade and Manage, and parts that the keys at the top of each tab show or put away. On the Trade tab: plan, risk, SL, TP, size, entry. On the Manage tab: account, close, at once, list. The gear opens three pages: plan, Guard, General.

Modern, SokanNew

A header with three tabs: Trade, Manage, General. The plan card folds to the plan's name and three chips (risk, stop kind, TP) and opens with its arrow onto the same six parts. With a trade open its card sits on top; when it closes, a just-closed card; when the day is locked, Day locked. Risk and reward are drawn on the chart itself.

The day's budget

Under the title, in both faces, a thin band: how much of today's loss limit is used and how many of today's trades are taken. It turns amber past 60% and rose at the limit. The figures are the guard's own. With the guard off it says the guard is off.

The — key folds the panel to one row: open profit, how many are open, and two keys, BE and all. The arrow beside them brings it back.

The classic header with the day's budget band
The budget band: today's loss and trades.
The panel folded to one row
Folded.

3Your first trade

1. Put the lines out

With no lines on the chart, press place the lines. The red line is the stop; drag it to where it belongs. The green one is the TP. The panel says so: then drag the red line to where the stop belongs.

Shorter: under where the SL goes press candle, ATR or swing. The stop goes behind the last candle, an ATR away, or behind the last swing, and the lines come out if they were not there.

remove takes the lines away.

The place the lines key on the classic panel
With no lines on the chart.

2. Choose the risk

Under risk per trade there are two ready figures, 0.5% and 1%, and a box for your own: press it, type, press Enter.

Three keys set the unit, %, $ and lots; the lit one is in force. $ is money in the account's currency, and an account that is not in dollars shows its own currency code there. Change the unit and the same risk is restated in the new one. If it cannot be, the unit stays and the panel says why.

The risk per trade row and the three unit keys
Risk per trade and the unit keys.

3. The TP

Under TP press 1R or 2R, or type your own: anything from 0.25R to 20R. Zero means no TP.

4. Look, then press

The panel shows lots, risk and if it hits, what the TP pays. If it looks right, press BUY or SELL.

The risk figure is usually a little under what you asked for. That is on purpose: the size is worked out from the worst price possible, so slippage cannot push your risk above what you set.

Press BUY with the stop above price and Sokan sends nothing and says the stop is above price, so this would be a sell. The same the other way.

In the modern face a red zone from entry to stop and a green one to the TP are drawn behind the candles and move with the lines. The classic face draws no zones.

The zones take their shade from the chart: light on a light background, dark on a dark one. For other colours, set the risk, reward and kept-profit zone colours in Sokan's inputs.

The risk and reward zones on a chart
The zones on a real chart, before the trade. The red line is the stop.

A waiting order

To be filled at another price, press pending. The entry line comes out; drag it to where you want filling, then BUY or SELL. The order waits at your line, and a waiting row with cancel shows it. market goes back to buying and selling at the market.

Plans, setup and feeling

You keep one, two or three plans; the plan page asks how many, and a new install starts at one. Each holds the risk, break even, the trail and the pieces off together; press one and the next trade uses it, open positions keep theirs. On the modern home one plan is a single slim line with its risk, stop and target, and two or three are a slim switch with that line under it. Each plan is set on the plan page, opened by the pencil.

Under the plans are two keys, setup and feeling. Each press puts the next name from your own list. The setup is remembered; the feeling goes with that one trade. Both are written to the day sheet, and neither ever stops a trade.

The waiting order card in the modern face
A waiting order, with cancel.

4Managing a trade

The open trade card (modern)

Once a trade opens, its card sits on top of the Trade tab: side and size, how many are open, R live, money, and a bar from the stop (-1R) to the TP with price on it. Under it the stop price, the trail, and three keys: BE, half and close.

With several trades open, the card writes their total on top with a row for each trade under it, because those three keys act on all of them. The total and the rows are both after commission.

The plan card and the sell and buy keys stay under it; nothing is hidden.

The open trade card in the modern face
The open trade card.
The modern card with several trades open
Several at once: the total on top, a row each.
The zones on the chart with a trade open
The same trade on the chart.

The quick bar (classic)

In the classic face, while a position is open, three keys come at the foot of the Trade tab: BE, half and close. They act on every position Sokan opened on this chart's symbol; with more than one they say so, BE all 3.

close takes two presses: the first asks, a second inside three seconds closes. Two very quick clicks count as one.

BE never pulls back a stop that is already past the entry. After each, the panel says for a few seconds what happened, 2 of 3 closed for instance, and if the broker refused one, why.

The quick bar and the to your plan question on the classic panel
The quick bar, and the question after a close.

The Manage tab

The account at the top: balance, equity and open. Then the two keys that stop everything:

  • all closes every Sokan position on this symbol, on the second press: the first turns it amber and asks, a second inside three seconds closes, any other key withdraws the question. In the modern face it is close all and asks sure? close 6, with cancel beside it. Two very quick clicks count as one.
  • end the day takes two presses. It closes what is open, cancels what is waiting and locks the day until the next day boundary. It is the one key that cannot be taken back.

Then closing by kind: winners, losers, buys, sells; and BE and half of all for everything. At the foot, one row per position with its own close, half and BE.

The modern Manage tab with close all waiting for its second press
Modern: "close all" waiting for the second press.

Just closed (modern)

When a trade closes its card stays on top for a minute: how it ended (closed at target, closed at stop, closed at break even, closed by hand, closed by the guard or closed by the broker), the R of the whole trade including any piece taken off on the way, the money, and how long it was open.

It also asks to your plan? with yes and no. In the classic face the same question is in the strip at the foot of the panel. Your answer goes to the to plan column of the day sheet. It waits 90 seconds or until the next close and never holds up a trade. Its switch is on the General page.

The just closed card in the modern face
The just-closed card.

Exits Sokan makes itself

On each plan's plan page: BE at (when the stop moves to the entry), trail (by ATR, pip, candle or chandelier, and starts at when it begins), and pieces off (up to three, each a share at an R). Each has its own switch.

News

With warn before news on, a line high-impact news in 15 min comes 15, 10 and 5 minutes before each high-impact release for this symbol's currencies, and stays 30 seconds each time. In the modern face, with a trade open, its yellow card sits under the trade card.

The news card under the trade card in the modern face
High-impact news, trade open.

5The guard and the day lock

The guard keeps the limits you set. It starts off; set its limits carefully before you switch it on, because a wrong one locks you out in the middle of a day. Its page is Guard under the gear.

Every row has a switch and a figure:

  • loss today: per cent lost today. money lost is the same limit in the account's money.
  • trades, losses in a row and TPs hit: trades, losses in a row, and TPs in a day.
  • profit today: per cent made today, after which that is enough.
  • overall loss, from: per cent lost overall, from the start or from the peak.
  • open risk: a ceiling on the risk of every position and waiting order together.
  • hours: from which hour to which, server time. news: the minutes before a high-impact release when entries stop (they stay stopped ten minutes after it); its switch turns the filter on or off.
  • measured on: equity or balance.

The whole guard has one switch, at the foot: the guard is on or the guard is off.

The Guard page
The Guard page.

The day lock

There are two kinds of limit and they do different things:

  • A loss limit (loss today, money lost, overall loss): Sokan closes the positions it opened on this symbol and locks the day.
  • A count, a clock or the day's target: only new trades are refused; what is running keeps its own stop.

On a locked day sell and buy go dim and the strip says why, LOCKED - today's loss 212.50 of 200.00 for instance. The modern face puts the Day locked card on top, with open trades can still be closed. The day opens at the day boundary, the hour set in DayBoundaryHour, server time.

The day locked card in the modern face
The "Day locked" card.

6The General page

In the classic face press the gear, then General; in the modern face the General tab in the header. back returns to the panel.

  • chart pictures: a picture of the chart at each entry, each exit and each move by hand (stop or TP moved, a piece closed by hand). On unless you switch it off. Each trade in its setup's folder, trades with none in No Setup. where they go says where; MetaTrader will not write outside that folder.
  • the day's trades, as a spreadsheet: one row per closed trade, by itself, every day, with how far it went (up to TP 6).
  • panel size: from 80% to 140%. Press the figure, type, press Enter.
  • candle clock: the time left on the candle, beside it.
  • Telegram alerts: paired with pair; see the next chapter.
  • setup and feeling keys, ask "to your plan?" and warn before news: three switches for things described above.
  • your lists with edit: the names of your setups and feelings. A list holds six names. Press a name to rename it; empty removes it, and + adds one.
  • checklist with edit: the lines you check before a trade, five at most, off by default. While lines are on the chart they show above the buy and sell keys, and a press ticks one. It never blocks a trade; only the count, such as 4 of 5, goes with the trade into the day sheet.
The General page
The General page.
Your lists
Your lists.
The checklist
The checklist and its lines.

7Telegram alerts

Sokan can tell your phone about a few moments that matter, through the bot @retradeappbot. Until you pair, nothing leaves the computer.

  1. Allow https://backtest.arzoapp.ir in Allow WebRequest for listed URL first (see Install).
  2. On the General page, beside Telegram alerts, press pair. A QR square appears.
  3. Scan it with your phone's camera. Telegram opens the bot; press Start there.
  4. Back on the panel press I pressed START. Sokan asks the server, and only when the server agrees does the panel say paired: four alerts are on.
Pairing with Telegram, with the QR square
Your QR is on your own panel; this one is blurred on purpose.

Six alert switches

Once paired there are six switches: the day locked, 80% of the day's limit, a trade closed, a waiting order filled, news, with a trade open and the day's summary. The first four come on by themselves; switch news and the summary on yourself. Any of them can be switched off at any time.

The summary comes once a day, when the day ends, for the whole account: every symbol and every chart, one message, not one per chart. It says how many trades closed and how many went up and down, never a sum; a day with no trade sends nothing.

What leaves: only the symbol, R, the reason and the time. no account number or balance leaves. The day lock and 80% name the rule only, never a sum.

unpair ends the pairing: a signed message goes to the server and from then on nothing reaches the phone.

The six Telegram alert switches
The six alert switches.

8The Fanoos key

Fanoos (the dashboard) is a separate, paid Windows program that reads the files Sokan writes on this computer and analyses them. Sokan works fully without it.

The Fanoos row with its open key, at the foot of the General page, shows only while Fanoos is installed on this computer. It opens Fanoos on this account's page, or brings it to the front. With no answer inside two seconds the panel says open Fanoos from the Start menu.

A thin row above the panel's footer counts Sokan's closed trades up to 20, with a bar. Fanoos starts its analysis at 20 trades, and its seven-day free trial opens from there. At 20 the row says Fanoos is ready.

The Fanoos key at the foot of the General page
Only while Fanoos is installed.

9The start-up inputs

These are on the Inputs tab of the window that opens when Sokan goes on a chart. Every figure that is not here is on the panel and changes without taking Sokan off the chart.

NameDefaultWhat it does
LanguageEnglishThe panel language: English or Farsi / فارسی.
RiskAmountSK_IN_D_RISKPer cent risked per trade the first time Sokan starts on this computer. Change it on the panel after that.
Magic770001The number Sokan knows its trades by. Leave it alone unless you want two Sokans on one symbol.
BreakEvenSK_IN_D_BEBreak even on or off at the start. Its figure is on the panel.
TrailOnSK_IN_D_TRAILThe trail on or off at the start.
PartialsOnSK_IN_D_PARTIALSPieces off on or off at the start.
GuardOnSK_IN_D_GUARDThe guard on or off at the start.
DailyLossMoney0.0The daily loss limit as a sum in the account's money, for firms that state it that way. 0 is off. Also on the panel (money lost).
NewsFilterSK_IN_D_NEWSThe guard's news filter at the start: no new entry near high-impact news. Needs the news calendar, which Sokan fetches itself.
TradingHoursSK_IN_D_HOURSNew trades only inside the hours set on the panel.
DailyEmailfalseSend the day's summary with MetaTrader's own email, which has to be set up in Tools → Options → Email.
PledgeDays1How many days loosening the guard waits. 0 is no wait. Deliberately not on the panel.
DayBoundaryHour0The server hour a new day starts at, for the guard and the day sheet.
LossZoneColorclrNONEThe colour of the risk zone on the chart. None is automatic: light on a light chart, dark on a dark one.
ProfitZoneColorclrNONEThe colour of the reward zone on the chart. None is automatic.
KeptZoneColorclrNONEThe colour of profit the stop already keeps, after break even or the trail. None is automatic.

10The files Sokan writes

All in the folder every MetaTrader on this computer shares: type %APPDATA%\MetaQuotes\Terminal\Common\Files\Sokan into Windows and press Enter. Your account number is in the file names.

FileWhat it is
sheet_<account>.csvThe day sheet: one row per closed trade, with setup, feeling and the "to your plan?" answer. Opens in Excel.
journal_<account>.csvThe full record: every entry, every move by hand, every close.
events_<account>.csvEvents: starts and stops, settings changed, orders refused and why.
entries_<account>.csvThe account and the market at the moment of each entry.
path_<account>.csvThe price path of each trade from entry to close.
setup.csv, templates.csv, plancount.txtThe panel's settings, your plans and how many you keep. Sokan's own; leave them alone.

The pictures are in that MetaTrader's own folder: File → Open Data Folder, then MQL5\Files\Sokan\shots, one folder per setup. A copy of each goes to Common\Files\Sokan\shots beside the rest.

11When something does not work

When Sokan does not do something, it says why in the strip at the foot of the panel. These are the messages you may see, as the panel writes them:

trading is not allowed: tick it in Sokan's properties

Sokan's Allow Algo Trading is not ticked. Tick it.

the AutoTrading button is off: press it

MetaTrader has automated trading switched off as a whole. Switch Algo Trading on.

a netting account - Sokan needs a hedging one

This is a netting account. Ask your broker for a hedging one.

Sokan will not trade here - see the Experts tab

MetaTrader does not report this symbol properly. The exact reason is on the Experts tab of the Toolbox window (Ctrl+T). Close and reopen the chart, or try another symbol.

put a stop on the chart first; no R without one

Without a stop there is no R and no size. Press place the lines.

the stop is above price, so this would be a sell

The wrong key, or the stop is on the wrong side. Drag the red line or press the other key.

the open-risk ceiling is full

Open positions and waiting orders together have reached the guard's open risk. When the size was only made smaller the message is trimmed to fit the open risk ceiling.

a position with no stop is open: no room left

While a position with no stop is open its risk cannot be counted, so no new trade is taken. Give that position a stop.

only 60% of the risk asked, the lot step is coarse

This symbol's smallest lot step is coarse and Sokan rounded down. The figure is worked out each time. capped at the broker's maximum lot means the size reached the broker's maximum.

the market is closed

When the broker refuses an order the panel gives the broker's reason in the panel's language, like this one or there is not enough free margin. For a waiting order the order comes first, like BUY LIMIT refused:. The English sentence and the broker's error number stay on the Experts tab.

no news calendar: allow the bot in Options

Sokan could not fetch the news calendar, or the one it has is old. Allow https://backtest.arzoapp.ir in Allow WebRequest for listed URL. Sokan tries again by itself.

LOCKED - today's loss 212.50 of 200.00 USD

The guard locked the day and says why. No new trade until the next day boundary. Open positions can still be closed.

Sokan cannot save - is a file open in Excel?

One of Sokan's files, usually the day sheet, is open in Excel and locked. Close Excel. Sokan tries again every second and nothing is lost; a trade never waits for a record.

too small in that unit, so the unit stays

Your risk would be under the smallest lot in the new unit. If it says nothing to size it from yet: put the lines out, put the lines out first so there is something to size from.

no answer from the bot: allow its address

https://backtest.arzoapp.ir is not in the Allow WebRequest for listed URL list, or the internet is down. A line from Sokan on the Experts tab gives the error number.

the bot has not seen your START yet

Start has not been pressed in the bot yet, or the QR was scanned with another phone. Press Start, then I pressed START again.

open Fanoos from the Start menu

Fanoos did not answer within two seconds. Open it from the Windows Start menu.