कमाएं तक राशि
$ 50 000
दोस्तों को आमंत्रित करने के लिए
इंसटाफोरेक्स से स्टार्टअप बोनस प्राप्त करने के लिए
निवेश की आवश्यकता नहीं है!
के नये स्टार्टाप बोनस के साथ कोई
भी जोखिम और जमा के बिना
व्यापार शुरू करें
बोनस 1000$
from InstaForex
on every deposit
+ Reply to Thread
Results 1 to 1 of 1

Thread: Martingale Lover Coding

  1. #1
    Member wahaji will become famous soon enough wahaji's Avatar
    Join Date
    Sep 2017
    Accumulated bonus
    79.90 USD
    Thanked 74 Times in 58 Posts

    Martingale Lover Coding

    Here let's join for martingale lovers, let's talk about coding about martingale.

    As we know the general way martingale is to double the lot 2 times, but in its development this way more and more variations. Well there are often forgotten in our attention in this system, that is how to menclose position that is floating. I know there are 2 ways, namely:
    1. Accumulated profit (this way is too dangerous when slippage occurs)
    2. Trailing TP (this is the safest way in close position)

    If for the accumulation of profit coding like this:

    PHP Code:
    if(profit>=tp_in_money|| a>0
    where tp_in_money is an extern double, nah a less know too, please correct me if I am wrong.

    Well that's the problem I am coding for TP trailing that can be set for each level. For example:

    In the input menu like this

    TP 1 = 5
    TP 2 = 10
    TP 3 = 16
    TP 4 = 21
    TP 5 = 23

    So when level 2 hit, then level 2 modify TP to 10 pips while level 1 TP it in modif to TP which equal to level 2
    Then When level 3 hit, then level 3 modify TP to 16 pips while level 1 and 2 TP it in modif to TP same with level 3
    so on .......

    Coding is really confused, about how the master is here, can you help me ???

  2. The Following 4 Users Say Thank You to wahaji For This Useful Post:

    amir2880 (03-21-2018), hasna (02-28-2018), munich (02-28-2018), yandri (02-28-2018)

  3. FC
+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts