Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Coding Help

  1. #1

    Default Coding Help

    Though this thread might help eliminate some extra work for Funyoo here.

    As many of us have a fair understanding how coding works instead of requesting Funyoo to always make different enhancements perhaps we could post a request here for the coding as a reference for everyone so if someone wants to add a magic number or a trailing stop then the coding for that sequence could be posted here either by Funyoo or other members and a simply copy and paste into the existing program would eliminate a bit of extra work for Funyoo.

    As an example to add a magic number to a program:
    Add this to the inputs section.
    extern int Magic = 75631;

    Now search for:

    You will find something like this:
    OrderSend(symbol, OP_BUY, lot, price, Slippage, Stoploss, Takeprfit, 0, Magic, 0, Blue);

    Where :

    OrderSend(Symbol{}, is the currency
    OP_BUY, is the order type
    lot, is the lot size
    Slippage is the slippage
    Stoploss, is the Stoploss
    TakeProfit is the takeprofit
    Magic, is the magicnumber
    Blue is the color of the dot for the order on the chart.

    Do not attempt to change other things here other than add the MAgicnumber as there are other things that have to be done to add a Stoploss etc,

    You will most likely find something like this.

    OrderSend(symbol, OP_BUY, lot, price, 0, 0, 0, 0, 0, 0, Blue);

    so you will only add the "Magic where the 0 is located

    Hope this helps here

  2. #2
    Junior Member
    Join Date
    Jan 2012

    Default Can you help me about EA?

    hi my dear forex traders
    can you help me about to complet code of my ea that i want send order by crosses 2 EMA (5 , 6) that when EMA 5 >EMA 6 open buy position and when EMA 6 > EMA 5 close buy position and open sell order and continu too.
    Thank you for all

Similar Threads

  1. help with coding.
    By pelm in forum Ideas for expert advisors
    Replies: 1
    Last Post: 07-17-2013, 03:49
  2. Coding using MA
    By 100pipsv3.1[1]ea in forum MQL programming
    Replies: 0
    Last Post: 06-01-2012, 16:30
  3. Anyone still coding?
    By Equi in forum Ideas for expert advisors
    Replies: 2
    Last Post: 01-17-2012, 14:12
  4. Need Help Coding Help
    By andrewbisme31 in forum Commercial expert advisors
    Replies: 0
    Last Post: 01-14-2012, 13:20
  5. EA Coding
    By hymera in forum MQL programming
    Replies: 8
    Last Post: 02-05-2009, 13:38

Tags for this Thread

add, change, coding, color, copy, forex, funyoo, magic, magic number, slippage, stop, stoploss, 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