Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
 1 Attachment(s)    

Thread: Add Hidden TP and SL into code

  1. #21
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by BillR View Post
    Hi Funyoo,
    Yes, I believe the "Multiplier" to be broker dependent....FXDD "Demo" allows anything, but the "Live" account restricts....
    I'll read up/experiment on using extern bool.
    Is this the proper syntax??
    (I assume in order for the program to work both "Shorts" and "Longs" you'd have to now say "True" for both "Longs Only" AND "Shorts Only".

    tic = if(OnlyBuy)OrderSend(Symbol(), OP_BUY, NormalizeDouble(lotsi,1.5), Ask, slip, Ask - (sl)*Point, Ask + (tp + 25)*Point,
    " ", m, 0, Yellow);

    tic = if(OnlySell)OrderSend(Symbol(), OP_SELL, NormalizeDouble(lotsi,1.5), Bid, slip, Bid + (sl)*Point, Bid - (tp + 25)*Point,
    " ", m, 0, Red);

    Thanks again,
    Bill
    No it is like that :

    if(OnlySell)tic=OrderSend(Symbol(),...

    That's correct for the parameters set on true if you want buy and sell orders.

  2. #22

    Default

    Thanks Funyoo,
    I'll test it....I went to "Buy" you some coffee.....but it took me to a French Paypal site....No big deal except I can't read French!! Email a way....and I'll get you a few $$'s for coffee....Thanks again, Bill

  3. #23
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by BillR View Post
    Thanks Funyoo,
    I'll test it....I went to "Buy" you some coffee.....but it took me to a French Paypal site....No big deal except I can't read French!! Email a way....and I'll get you a few $$'s for coffee....Thanks again, Bill
    You're welcome.

    I have updated the donation button, it is in english now.

  4. #24
    Junior Member
    Join Date
    Feb 2011
    Posts
    2

    Default

    Hello funyoo....I also have frank_ud...now its OP in 1,2,4,8,16,32 n etc....
    Is it possible to make OP to 1,1,2,2,4,4,8,8 n etc...which part i can adjust the setting?
    Im a newbie...My english not so well...TQ.

  5. #25

    Default

    ShyGuy the way this code is written the lot sizes are not "Stepped" but rather a multiplier.... You could change the multiplier to something other than double (times 2)... ie. 1.5

    if(sob)
    {
    if(max_lot_b == 0.0)
    lotsi = 0.1;
    else
    lotsi = 1.5*max_lot_b;
    //----
    while(tic == -1 && kk < 3)
    {
    tic = OrderSend(Symbol(), OP_BUY, NormalizeDouble(lotsi,2), Ask,"","","" ," ", m, 0, Yellow);
    Print("tic_buy=", tic);


    This would be for the "Buy" conditions and you would also have to re write the "Sell" side..... Other dynamics also change as you will find out...retrace will take longer (more) to offset your lower lot sizes... So it is not all just less drawdown...
    Bill

  6. #26
    Junior Member
    Join Date
    Feb 2011
    Posts
    2

    Default

    I have tried to change the lotsi to 1.5 but when i try to load its not working...can u tell me the problem is?
    For your information im now testing this EA which im just modified if(max_lot_b == 0.0)lotsi = 0.01;else lotsi = 2.0*max_lot_b; //---- while(tic == -1 && kk < 3) for buy and sell...Im combine with a hidden SL in another chart....Im trade GU m5....The result was so well...I start with 5k account and now it growing to 157k in just three weeks...Im shocked and interest with this EA...Do you have any idea to smallize the open lot because sometimes its open 163.84 in one trade...

  7. #27
    Junior Member
    Join Date
    Oct 2015
    Posts
    2

    Default can you help me to finde hidden trailingstop

    can you help me to find hidden trailingstop

Similar Threads

  1. Hidden take profit idea
    By logan113 in forum MQL programming
    Replies: 3
    Last Post: 07-30-2017, 11:36
  2. hello can you help me to find Hidden trailing stop
    By m4hfoud in forum Trading discussion
    Replies: 0
    Last Post: 11-08-2015, 22:28
  3. The hidden face of the Moon
    By fxtester in forum General discussion
    Replies: 1
    Last Post: 02-27-2015, 18:13
  4. Hidden SL & TP
    By jidonk in forum MQL programming
    Replies: 2
    Last Post: 04-20-2009, 17:35

Tags for this Thread

100, add, backtesting, broker, change, demo, expert, funyoo, guide, high, learn, live, magic, magic number, martingale, mq4, programming, sells, stop, stoploss, test, time, trailing

Posting Permissions

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