Forums ProRealTime English forum ProOrder support Optimum Entry after Set Point Reply To: Optimum Entry after Set Point

#136659

Apologies – I’ve been off the screen for a good while so missed your reply!

Thanks for replying and I get what you mean about replying in code, maybe we’re all in the Matrix after all!!

Firstly I do seem to run in to problems as it is very apparent the coding manual I downloaded from PRT Software does not have the complete set of codes and operators, hence I struggle to code what I want my strategies to do! is there a complete set of codes somewhere I am missing?

Back to my original issue.

I think your reply will work, but I still want to run a continuous loop until the condition is true i.e.

  1. Price is => my set point for the short to trigger the loop (ENTRY)
  2. A set of conditions i.e. high >high[1]
  3. Loops until high < high[1]
  4. Max high within the loop is recored
  5. Loop stops
  6. Code enters me into a Short (in this case)

A second condition also need to be added if price doesn’t reverse and keeps on powering up to and/or past x number of pips past my set point for entry. i.e.

I’m guessing an ELSE part of the IF loop:

  1. high>= ENTRY + 30 (i.e. 30 pips above original set point entry)
  2. THEN quit i.e. trade is invalid

So to summarise an original set point for entry is entered as a variable within the code, if price = or breaks above the entry level then a loop is initiated until the current high is lower than the previous bar. It loops until this condition is met and then enters as soon as it is.

If it keeps on creating higher highs and breaks above my original set entry point + say 30 pips (variable) the trade is invalid and quits.

Phew! I hope this explains what I am trying to do?

Regards

Steve