Author Topic: need afl code for maximum 1 intraday trade per day  (Read 2766 times)

jesus123raja

  • Newbie
  • *
  • Posts: 3
    • View Profile
need afl code for maximum 1 intraday trade per day
« on: June 27, 2016, 02:16:15 am »
needs afl code for only 1 trade per day that to first signal of the day (either buy or short) and want to ignore rest of all signals of that day (either buy or short)

mradtke

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: need afl code for maximum 1 intraday trade per day
« Reply #1 on: August 17, 2016, 04:55:00 pm »
Try this:

// Generate entry signals here...


isEndOfDay = Nz(TimeFrameExpand(1, inDaily, expandPoint));
Buy = ExRem(Buy, isEndOfDay);
Short = ExRem(Short, isEndOfDay);

- Matt