f1=high[0]
f2=high[1]
IF f1>f2 THEN
c2=f1
On a trading program is it possible to record c2 in the above as a value., and reset it after a trade?
Welcome to the forums.
Is your question strategy related? If it is then you should have posted in the ProOrder forum and not the indicator based ProBuilder forum. Also please use the ‘Insert PRT Code’ button when posting code.
Your question is not very clear – any value can be stored or changed at the close of any bar. If you want to retain it as a value then just store it within any IF… THEN conditions that you place an order within and use IF NOT ONMARKET to stop it being changed after the trade is on.
f1=high[0]
f2=high[1]
IF f1>f2 THEN
c2=f1
endif
if not onmarket and (your conditions) then
buy 1 contract at market
myvalue = c2
endif