Refactoring to Trading System

This commit is contained in:
Luis Fernando Molina committed 2019-05-12 14:07:41 +02:00
1 parent a4f199f792
commit 2fcd49ff13
8 files changed
+31 -32

No files matched your search

+1 -2
View File
@@ -44,7 +44,7 @@ function newStrategyCollectionItem () {
function onMouseClick (event) {
if (status === 'off') {
canvas.floatingSpace.makeVisible()
thisObject.strategy = newInvestmentPlan()
thisObject.strategy = newTradingSystem()
thisObject.strategy.initialize(thisObject.strategySource)
status = 'on'
} else {
@@ -175,4 +175,3 @@ function newStrategyCollectionItem () {
browserCanvasContext.drawImage(thisObject.icon, point1.x - IMAGE_SIZE / 2, point1.y - IMAGE_SIZE / 2, IMAGE_SIZE, IMAGE_SIZE)
}
}