I am trying RPAChallenge Stock Market, and I have set two target numbers. If the value is lower than or equal to the target number, the shares will be bought, and if the value is greater than or equal to the target number, the shares will be sold.
My question is how to calculate the minimum and maximum price drop that can occur
Therefore, even if the high target num condition is true, it should still wait to see if the price increases
Similarly, if the low num condition is true, it will still wait to see if the price gets lower
The problem is that while waiting for the price to get lowest there is a chance that the price will rise and you won’t be able to buy the shares.
It can happen with the highest possible price as well
Based on your requirement you can Design flow.
If you need to Track data for an hour, use Get text activity and extract each and every change of data and feed it into the data table, After one hour, process the DT and find the minimum and maximum of an hour. To find the change in Data, use the Element change trigger activity in the trigger scope.
if i have to store each price in a datatable and then find the min and max , till then the price will be fluctuated so many times on the rpa challenge stock market